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 |
---|---|
Json |
The default constructor of class JsonArray. |
Json |
An overloaded constructor that takes JsonArray object in string format. |
Properties
Name | Description |
---|---|
Count | This property gets total items in array. |
In |
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(Json |
Adds JSONValue item to array. |
Add(Json |
Adds JSONValueBase item to array. |
Clear() | Clears all array items and brings count to 0. |
Contains(Json |
Checks if a JSONValue item exits in array. |
Contains(Json |
Checks if a JsonValueBase item exits in array. |
Copy |
Copies items from provided array starting from a particular array index. |
Equals(Object) | Checks if an object is equal to this instance of JSONArray. |
Get |
Returns an enumerator that iterates through JSONArray items. |
Remove(Json |
Removes JSONValue item from array. |
Remove(Json |
Removes JsonValueBase item from array. |
To |
Returns JSONArray in string representation. |