What\'s the best practice for retrieving JSON values that may not even exist in C# using Json.NET?
Right now I\'m dealing with a JSON provider that returns JSON that
You can simply typecast, and it will do the conversion for you, e.g.
var with = (double?) jToken[key] ?? 100;
It will automatically return null if said key is not present in the object, so there's no need to test for it.
null