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
Here is how you can check if the token exists:
if (jobject["Result"].SelectToken("Items") != null) { ... }
It checks if "Items" exists in "Result".
This is a NOT working example that causes exception:
if (jobject["Result"]["Items"] != null) { ... }