Class JsonArray
Class represnts JArray in JSON standards. Inner implementation of IJSONArray
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public sealed class JsonArray : JsonValueBase, IJsonArray, ICollection<JsonValueBase>, IEnumerable<JsonValueBase>
Constructors
Name | Description |
---|---|
JsonArray() | Default constructor |
JsonArray(String) | Overloaded constructor |
Properties
Name | Description |
---|---|
Count | Total items in array |
InMemorySize | 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(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 obj is equal to this instance of JSONArray |
GetEnumerator() | Returns and 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 |