Class JsonObject
Class represents JObject in JSON standards.
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public sealed class JsonObject : JsonValueBase, IJsonObject, IEnumerable<KeyValuePair<string, JsonValueBase>>, IEnumerable
Constructors
Name | Description |
---|---|
Json |
The default constructor of class JsonObject. |
Json |
An Overloaded constructor that populates attributes by parsing given JSONObject string. |
Json |
Overloaded constructor which populates attributes by parsing given JSONObject string and Type. |
Properties
Name | Description |
---|---|
Count | Number of attributes in object. |
In |
In memory size of the JSONObject. |
Item[String] | Iterates over attributes in JSONObject. |
Size | Size of the JSONObject. |
Type | Type of the Json object. |
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 object is equal to the existing instance of JSONObject. |
Get |
Retruns collection of all the attribute names. |
Get |
Gets attribute value identified by the attribute name. |
Get |
Returns an enumerator that iterates through JSONObject attributes. |
Remove |
Removes attribute from object on the basis of attribute name provided. |
To |
Returns JSONObject in string representation. |