Class JArray
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Newtonsoft.Json.dll
Syntax
public class JArray : Newtonsoft.Json.Linq.JContainer, System.Collections.Generic.ICollection<Newtonsoft.Json.Linq.JToken>, System.Collections.Generic.IEnumerable<Newtonsoft.Json.Linq.JToken>, System.Collections.Generic.IList<Newtonsoft.Json.Linq.JToken>
Constructors
JArray()
Declaration
public JArray ();
JArray(JArray)
JArray(Object)
JArray(Object[])
Properties
ChildrenTokens
Declaration
protected override System.Collections.Generic.IList<Newtonsoft.Json.Linq.JToken> ChildrenTokens { get; }
Property Value
IList<JToken>
|
IsReadOnly
Item[Int32]
Declaration
public Newtonsoft.Json.Linq.JToken this[int index] { get; set; }
Parameters
Int32
index
|
Property Value
JToken
|
Item[Object]
Declaration
public override Newtonsoft.Json.Linq.JToken this[object key] { get; set; }
Parameters
Object
key
|
Property Value
JToken
|
Type
Methods
Add(JToken)
Clear()
Declaration
public void Clear ();
Contains(JToken)
Declaration
public bool Contains (Newtonsoft.Json.Linq.JToken item);
Parameters
JToken
item
|
Returns
Boolean
|
CopyTo(JToken[], Int32)
Declaration
public void CopyTo (Newtonsoft.Json.Linq.JToken[] array, int arrayIndex);
Parameters
JToken[]
array
|
Int32
arrayIndex
|
FromObject(Object)
Declaration
public static Newtonsoft.Json.Linq.JArray FromObject (object o);
Parameters
Object
o
|
Returns
JArray
|
FromObject(Object, JsonSerializer)
Declaration
public static Newtonsoft.Json.Linq.JArray FromObject (object o, Newtonsoft.Json.JsonSerializer jsonSerializer);
Parameters
Object
o
|
JsonSerializer
jsonSerializer
|
Returns
JArray
|
GetEnumerator()
Declaration
public System.Collections.Generic.IEnumerator<Newtonsoft.Json.Linq.JToken> GetEnumerator ();
Returns
IEnumerator<JToken>
|
IndexOf(JToken)
Declaration
public int IndexOf (Newtonsoft.Json.Linq.JToken item);
Parameters
JToken
item
|
Returns
Int32
|
Insert(Int32, JToken)
Declaration
public void Insert (int index, Newtonsoft.Json.Linq.JToken item);
Parameters
Int32
index
|
JToken
item
|
Load(JsonReader)
Declaration
public static Newtonsoft.Json.Linq.JArray Load (Newtonsoft.Json.JsonReader reader);
Parameters
JsonReader
reader
|
Returns
JArray
|
Load(JsonReader, JsonLoadSettings)
Declaration
public static Newtonsoft.Json.Linq.JArray Load (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings);
Parameters
JsonReader
reader
|
JsonLoadSettings
settings
|
Returns
JArray
|
LoadAsync(JsonReader, CancellationToken)
Declaration
public static System.Threading.Tasks.Task<Newtonsoft.Json.Linq.JArray> LoadAsync (Newtonsoft.Json.JsonReader reader, System.Threading.CancellationToken cancellationToken = null);
Parameters
JsonReader
reader
|
CancellationToken
cancellationToken
|
Returns
Task<JArray>
|
LoadAsync(JsonReader, JsonLoadSettings, CancellationToken)
Declaration
public static System.Threading.Tasks.Task<Newtonsoft.Json.Linq.JArray> LoadAsync (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings, System.Threading.CancellationToken cancellationToken = null);
Parameters
JsonReader
reader
|
JsonLoadSettings
settings
|
CancellationToken
cancellationToken
|
Returns
Task<JArray>
|
Parse(String)
Declaration
public static Newtonsoft.Json.Linq.JArray Parse (string json);
Parameters
String
json
|
Returns
JArray
|
Parse(String, JsonLoadSettings)
Declaration
public static Newtonsoft.Json.Linq.JArray Parse (string json, Newtonsoft.Json.Linq.JsonLoadSettings settings);
Parameters
String
json
|
JsonLoadSettings
settings
|
Returns
JArray
|
Remove(JToken)
Declaration
public bool Remove (Newtonsoft.Json.Linq.JToken item);
Parameters
JToken
item
|
Returns
Boolean
|
RemoveAt(Int32)
WriteTo(JsonWriter, JsonConverter[])
Declaration
public override void WriteTo (Newtonsoft.Json.JsonWriter writer, params Newtonsoft.Json.JsonConverter[] converters);
Parameters
JsonWriter
writer
|
JsonConverter[]
converters
|
WriteToAsync(JsonWriter, CancellationToken, JsonConverter[])
Declaration
public override System.Threading.Tasks.Task WriteToAsync (Newtonsoft.Json.JsonWriter writer, System.Threading.CancellationToken cancellationToken, params Newtonsoft.Json.JsonConverter[] converters);
Parameters
JsonWriter
writer
|
CancellationToken
cancellationToken
|
JsonConverter[]
converters
|
Returns
Task
|