0
mgmajid ghasemi
throw new InvalidOperationException("JSON object does not have any keys");
This code checks to see if the JSON object has any keys. If it does not, it throws an InvalidOperationException.
0 Comments
if (Object.keys(retJson).length == 0)