-
-
Save jaredjenkins/6198133 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static public bool JsonDataContainsKey(JsonData data,string key) | |
{ | |
bool result = false; | |
if(data == null) | |
return result; | |
if(!data.IsObject) | |
{ | |
return result; | |
} | |
IDictionary tdictionary = data as IDictionary; | |
if(tdictionary == null) | |
return result; | |
if(tdictionary.Contains(key)) | |
{ | |
result = true; | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment