Class JsonArray
Class represnts JArray in JSON standards. Inner implementation of IJSONArray
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public sealed class JsonArray : JsonValueBase, IJsonArray, ICollection<JsonValueBase>, IEnumerable<JsonValueBase>, IEnumerable
Constructors
Name | Description |
---|---|
Json |
Default constructor |
Json |
Overloaded constructor |
Properties
Name | Description |
---|---|
Count | Total items in array |
In |
In memory size if the JSONArray |
Item[Int32] | Indexer for the JSON Arary |
Size | Size if the JSONArray |
Value | 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 obj is equal to this instance of JSONArray |
Get |
Returns and 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 |