Class JsonObject
Class represents JObject in JSON standards
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public sealed class JsonObject : JsonValueBase, IJsonObject, IEnumerable<KeyValuePair<string, JsonValueBase>>
Constructors
Name | Description |
---|---|
JsonObject() | Defafault constructor |
JsonObject(String) | Overloaded constructor which populates attributes by parsing given JSONObject string |
Properties
Name | Description |
---|---|
Count | Number of attributes in object |
InMemorySize | 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 |
---|---|
AddAttribute(String, JsonValue) | Adds an attribute in the object |
AddAttribute(String, JsonValueBase) | Adds an attribute in the object |
Clear() | Removes all attributes from JSONObject |
ContainsAttribute(String) | Checks if the attribute exits |
Equals(Object) | Checks if an obj is equal to this instance of JSONObject |
GetAttributeNames() | Retruns collection of all the attribute names |
GetAttributeValue(String) | Gets attribute value identified by the attribute name |
GetEnumerator() | Returns and Enumerator that iterates through JSONObject attributes |
RemoveAttribute(String) | Removes attribute from object on the basis of attribute name provided |
ToString() | Returns JSONObject in string representation |