JArray Class

Json.NET

Json.NET - Quick Starts & API Documentation JArray Class
NamespacesNewtonsoft.Json.LinqJArray
Represents a JSON array.
Declaration Syntax
C# Visual Basic Visual C++
Public Class JArray _
	Inherits JContainer _
	Implements IList(Of JToken), ICollection(Of JToken),  _
	IEnumerable(Of JToken), IEnumerable
public ref class JArray : public JContainer, 
	IList<JToken^>, ICollection<JToken^>, IEnumerable<JToken^>, 
	IEnumerable
Members
All Members Constructors Methods Properties Events



Icon Member Description
JArray()()()()
Initializes a new instance of the JArray class.

JArray(JArray)
Initializes a new instance of the JArray class from another JArray object.

JArray(array<Object>[]()[][])
Initializes a new instance of the JArray class with the specified content.

JArray(Object)
Initializes a new instance of the JArray class with the specified content.

Add(JToken)
Adds an item to the ICollection<(Of <(<'T>)>)>.

Add(Object)
Adds the specified content as children of this JToken.
(Inherited from JContainer.)
AddAfterSelf(Object)
Adds the specified content immediately after this token.
(Inherited from JToken.)
AddBeforeSelf(Object)
Adds the specified content immediately before this token.
(Inherited from JToken.)
AddFirst(Object)
Adds the specified content as the first children of this JToken.
(Inherited from JContainer.)
AddingNew
Occurs before an item is added to the collection.
(Inherited from JContainer.)
AfterSelf()()()()
Returns a collection of the sibling tokens after this token, in document order.
(Inherited from JToken.)
Ancestors()()()()
Returns a collection of the ancestor tokens of this token.
(Inherited from JToken.)
Ancestors<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>))
Returns a collection of tokens that contains the ancestors of every token in the source collection.
(Inherited from Extensions.)
AsJEnumerable(IEnumerable<(Of <<'(JToken>)>>))
Returns the input typed as IJEnumerable<(Of <(<'T>)>)>.
(Inherited from Extensions.)
AsJEnumerable<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>))
Returns the input typed as IJEnumerable<(Of <(<'T>)>)>.
(Inherited from Extensions.)
BeforeSelf()()()()
Returns a collection of the sibling tokens before this token, in document order.
(Inherited from JToken.)
Children()()()()
Returns a collection of the child tokens of this token, in document order.
(Inherited from JContainer.)
Children<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>))
Returns a collection of child tokens of every array in the source collection.
(Inherited from Extensions.)
Children<(Of <<'(T, U>)>>)(IEnumerable<(Of <<'(T>)>>))
Returns a collection of converted child tokens of every array in the source collection.
(Inherited from Extensions.)
ChildrenTokens
Gets the container's children tokens.
(Overrides JContainer.ChildrenTokens.)
Clear()()()()
Removes all items from the ICollection<(Of <(<'T>)>)>.

CollectionChanged
Occurs when the items list of the collection has changed, or the collection is reset.
(Inherited from JContainer.)
Contains(JToken)
Determines whether the ICollection<(Of <(<'T>)>)> contains a specific value.

Count
Gets the count of child JSON tokens.
(Inherited from JContainer.)
CreateReader()()()()
Creates an JsonReader for this token.
(Inherited from JToken.)
CreateWriter()()()()
Creates an JsonWriter that can be used to add tokens to the JToken.
(Inherited from JContainer.)
DeepClone()()()()
Creates a new instance of the JToken. All child tokens are recursively cloned.
(Inherited from JToken.)
Descendants()()()()
Returns a collection of the descendant tokens for this token in document order.
(Inherited from JContainer.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
First
Get the first child token of this token.
(Inherited from JContainer.)
FromObject(Object)
Creates a JArray from an object.

FromObject(Object, JsonSerializer)
Creates a JArray from an object.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetMetaObject(Expression)
Returns the DynamicMetaObject responsible for binding operations performed on this object.
(Inherited from JToken.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
HasValues
Gets a value indicating whether this token has childen tokens.
(Inherited from JContainer.)
IndexOf(JToken)
Determines the index of a specific item in the IList<(Of <(<'T>)>)>.

Insert(Int32, JToken)
Inserts an item to the IList<(Of <(<'T>)>)> at the specified index.

IsValid(JToken, JsonSchema)
Determines whether the JToken is valid.
(Inherited from Extensions.)
IsValid(JToken, JsonSchema, IList<(Of <<'(String>)>>)%)
Determines whether the JToken is valid.
(Inherited from Extensions.)
Item[([( Object])])
Gets the JToken with the specified key.
(Overrides JToken.Item[([( Object])]) .)
Item[([( Int32])])
Gets or sets the JToken at the specified index.

Last
Get the last child token of this token.
(Inherited from JContainer.)
ListChanged
Occurs when the list changes or an item in the list changes.
(Inherited from JContainer.)
Load(JsonReader)
Loads an JArray from a JsonReader.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Next
Gets the next sibling token of this node.
(Inherited from JToken.)
OnAddingNew(AddingNewEventArgs)
Raises the AddingNew event.
(Inherited from JContainer.)
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Raises the CollectionChanged event.
(Inherited from JContainer.)
OnListChanged(ListChangedEventArgs)
Raises the ListChanged event.
(Inherited from JContainer.)
Parent
Gets or sets the parent.
(Inherited from JToken.)
Parse(String)
Load a JArray from a string that contains JSON.

Previous
Gets the previous sibling token of this node.
(Inherited from JToken.)
Remove(JToken)
Removes the first occurrence of a specific object from the ICollection<(Of <(<'T>)>)>.

Remove()()()()
Removes this token from its parent.
(Inherited from JToken.)
RemoveAll()()()()
Removes the child nodes from this token.
(Inherited from JContainer.)
RemoveAt(Int32)
Removes the IList<(Of <(<'T>)>)> item at the specified index.

Replace(JToken)
Replaces this token with the specified token.
(Inherited from JToken.)
ReplaceAll(Object)
Replaces the children nodes of this token with the specified content.
(Inherited from JContainer.)
Root
Gets the root JToken of this JToken.
(Inherited from JToken.)
SelectToken(String)
Selects the token that matches the object path.
(Inherited from JToken.)
SelectToken(String, Boolean)
Selects the token that matches the object path.
(Inherited from JToken.)
ToObject<(Of <<'(T>)>>)()()()()
Creates the specified .NET type from the JToken.
(Inherited from JToken.)
ToObject<(Of <<'(T>)>>)(JsonSerializer)
Creates the specified .NET type from the JToken using the specified JsonSerializer.
(Inherited from JToken.)
ToString()()()()
Returns the indented JSON for this token.
(Inherited from JToken.)
ToString(Formatting, array<JsonConverter>[]()[][])
Returns the JSON for this token using the given formatting and converters.
(Inherited from JToken.)
Type
Gets the node type for this JToken.
(Overrides JToken.Type.)
Validate(JToken, JsonSchema)
Validates the specified JToken.
(Inherited from Extensions.)
Validate(JToken, JsonSchema, ValidationEventHandler)
Validates the specified JToken.
(Inherited from Extensions.)
Value<(Of <<'(T>)>>)(Object)
Gets the JToken with the specified key converted to the specified type.
(Inherited from JToken.)
Value<(Of <<'(U>)>>)(IEnumerable<(Of <<'(JToken>)>>))
Converts the value.
(Inherited from Extensions.)
Value<(Of <<'(T, U>)>>)(IEnumerable<(Of <<'(T>)>>))
Converts the value.
(Inherited from Extensions.)
Values<(Of <<'(T>)>>)()()()()
Returns a collection of the child values of this token, in document order.
(Inherited from JContainer.)
Values(IEnumerable<(Of <<'(JToken>)>>), Object)
Returns a collection of child values of every object in the source collection with the given key.
(Inherited from Extensions.)
Values(IEnumerable<(Of <<'(JToken>)>>))
Returns a collection of child values of every object in the source collection.
(Inherited from Extensions.)
Values<(Of <<'(U>)>>)(IEnumerable<(Of <<'(JToken>)>>), Object)
Returns a collection of converted child values of every object in the source collection with the given key.
(Inherited from Extensions.)
WriteTo(JsonWriter, array<JsonConverter>[]()[][])
Writes this token to a JsonWriter.
(Overrides JToken.WriteTo(JsonWriter, array<JsonConverter>[]()[][]).)
Inheritance Hierarchy
Object
JToken
  JContainer
    JArray

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.6.14930)