Class JsonArray
This class represents JArray in JSON standards.
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public sealed class JsonArray : JsonValueBase, IJsonArray, ICollection<JsonValueBase>, IEnumerable<JsonValueBase>, IEnumerable
Constructors
Name | Description |
---|---|
JsonArray() | The default constructor of class JsonArray. |
JsonArray(String) | An overloaded constructor that takes JsonArray object in string format. |
Properties
Name | Description |
---|---|
Count | This property gets total items in array. |
InMemorySize | This property gets memory size of the JSONArray. |
Item[Int32] | Indexer for the JSON Arary. |
Size | This property gets the size of the JSONArray. |
Value | This property initializes JSONArray instance. |
Methods
Name | Description |
---|---|
Add(JsonValue) | Adds JSONValue item to array. |
Add(JsonValueBase) | Adds JSONValueBase item to array. |
Clear() | Clears all array items and brings count to 0. |
Contains(JsonValue) | Checks if a JSONValue item exits in array. |
Contains(JsonValueBase) | Checks if a JsonValueBase item exits in array. |
CopyTo(JsonValueBase[], Int32) | Copies items from provided array starting from a particular array index. |
Equals(Object) | Checks if an object is equal to this instance of JSONArray. |
GetEnumerator() | Returns an enumerator that iterates through JSONArray items. |
Remove(JsonValue) | Removes JSONValue item from array. |
Remove(JsonValueBase) | Removes JsonValueBase item from array. |
ToString() | Returns JSONArray in string representation. |