I am not intimate with JSON.NET for JSON deserialization, but if you use C # 4, you can get a fairly simple solution using dynamic code.
I posted the code here that will allow you to write the code above:
if (token.key!=null) Response.Write(token.key);
If you use JSON.NET to deserialize JSON, then this might be a simpler solution for you.
source share