Class JsonObject
Class represents JObject in JSON standards.
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
[Obsolete("This API is deprecated and will be removed in a future release. This feature is being retired and will not be continued in future versions.", false)]
public sealed class JsonObject : JsonValueBase, IJsonObject, IEnumerable<KeyValuePair<string, JsonValueBase>>, IEnumerable
Constructors
| Name | Description |
|---|---|
| JsonObject() | The default constructor of class JsonObject. |
| JsonObject(String) | An Overloaded constructor that populates attributes by parsing given JSONObject string. |
| JsonObject(String, String) | Overloaded constructor which populates attributes by parsing given JSONObject string and Type. |
Properties
| Name | Description |
|---|---|
| Count | Number of attributes in object. |
| InMemorySize | 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 |
|---|---|
| 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 object is equal to the existing instance of JSONObject. |
| GetAttributeNames() | Retruns collection of all the attribute names. |
| GetAttributeValue(String) | Gets attribute value identified by the attribute name. |
| GetEnumerator() | Returns an 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. |