In Java
there is a nice method has
that makes it possible to check whether a json object contains a key or not. I use it like so:
JSONObject obj = ....; // <- got by some procedure
if(obj.has("some_key")){
// do something
}
I could not find the same cool functionality in newtonsoft.json
library for C#
. So, I wonder what are the alternatives. Thanks!