Class JsonObject
Class represents JObject in JSON standards
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public sealed class JsonObject : JsonValueBase, IJsonObject, IEnumerable<KeyValuePair<string, JsonValueBase>>, IEnumerable
Constructors
Name | Description |
---|---|
Json |
Defafault constructor |
Json |
Overloaded constructor which populates attributes by parsing given JSONObject string |
Properties
Name | Description |
---|---|
Count | Number of attributes in object |
In |
In memory size of the JSONObject |
Item[String] | iterator over attributes in JSONObject |
Size | Size of the JSONObject |
Value | Returns instance of this object |
Methods
Name | Description |
---|---|
Add |
Adds an attribute in the object |
Add |
Adds an attribute in the object |
Clear() | Removes all attributes from JSONObject |
Contains |
Checks if the attribute exits |
Equals(Object) | Checks if an obj is equal to this instance of JSONObject |
Get |
Retruns collection of all the attribute names |
Get |
Gets attribute value identified by the attribute name |
Get |
Returns and Enumerator that iterates through JSONObject attributes |
Remove |
Removes attribute from object on the basis of attribute name provided |
To |
Returns JSONObject in string representation |