We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ee6363 + fb2278a commit a149833Copy full SHA for a149833
1 file changed
src/LitJson/JsonData.cs
@@ -73,6 +73,16 @@ public bool IsString {
73
public ICollection<string> Keys {
74
get { EnsureDictionary (); return inst_object.Keys; }
75
}
76
+
77
+ /// <summary>
78
+ /// Determines whether the json contains an element that has the specified key.
79
+ /// </summary>
80
+ /// <param name="key">The key to locate in the json.</param>
81
+ /// <returns>true if the json contains an element that has the specified key; otherwise, false.</returns>
82
+ public Boolean ContainsKey(String key) {
83
+ EnsureDictionary();
84
+ return this.inst_object.Keys.Contains(key);
85
+ }
86
#endregion
87
88
0 commit comments