• Manual
  • API Documentation
  • Bayat.Json.Linq
  • JArray

    Show / Hide Table of Contents
    • Bayat
      • UnityThread
    • Bayat.Core
      • AddReferenceWindow
      • AddReferenceWindow.Dependency
      • AssetReferenceResolver
      • AssetReferenceResolverEditor
      • BayatEditorStyles
      • CoreAssetPostProcessor
      • EditorApplicationUtility
      • MaterialPropertiesResolver
      • MaterialPropertiesResolverEditor
      • ReferenceCheckerWindow
      • ReferenceResolverMode
      • RuntimeMaterialProperties
      • RuntimeMaterialProperty
      • RuntimeMaterialPropertyType
      • SceneReferenceResolver
      • SceneReferenceResolverEditor
      • UnityEditorInternalException
    • Bayat.Core.EditorWindows
      • AssetReferenceManagerWindow
      • AssetReferenceManagerWindow.Styles
      • DatabaseMigrationWindow
      • DatabaseMigrationWindow.SceneMigrationStatus
      • DatabaseMigrationWindow.Styles
      • EditorWindowExtensions
      • EditorWindowUtility
      • EditorWindowWrapper
      • SceneReferenceManagerWindow
      • SceneReferenceManagerWindow.Styles
      • WindowClose
      • WrappedEditorWindow
    • Bayat.Core.Profiling
      • ProfiledSegment
      • ProfiledSegmentCollection
      • ProfilingScope
      • ProfilingUtility
    • Bayat.Core.Reflection
      • AssemblyExtensions
      • Codebase
      • RuntimeCodebase
      • TypeExtensions
      • TypeUtility
    • Bayat.Core.Text
      • StringExtensions
      • StringUtility
    • Bayat.Core.Utilities
      • ExceptionExtensions
      • GuidToReferenceDictionary
      • SerializableDictionary<TKey, TVal>
    • Bayat.Json
      • ConstructorHandling
      • CreateObjectConverterWindow
      • CreateObjectConverterWindow.Styles
      • DateFormatHandling
      • DateParseHandling
      • DateTimeZoneHandling
      • DefaultValueHandling
      • FloatFormatHandling
      • FloatParseHandling
      • Formatting
      • GameObjectSerializationHandler
      • GameObjectSerializationManagerTreeView
      • GameObjectSerializationManagerTreeView.Styles
      • GameObjectSerializationManagerWindow
      • GameObjectSerializationManagerWindow.Styles
      • IArrayPool<T>
      • IJsonLineInfo
      • JsonArrayAttribute
      • JsonConstructorAttribute
      • JsonContainerAttribute
      • JsonContainerType
      • JsonConvert
      • JsonConverter
      • JsonConverterAttribute
      • JsonConverterCollection
      • JsonDefaultSettingsWindow
      • JsonDefaultSettingsWindow.Styles
      • JsonDictionaryAttribute
      • JsonException
      • JsonExtensionDataAttribute
      • JsonIgnoreAttribute
      • JsonObjectAttribute
      • JsonPosition
      • JsonPropertyAttribute
      • JsonReader
      • JsonReader.State
      • JsonReaderException
      • JsonRequiredAttribute
      • JsonSerializationException
      • JsonSerializer
      • JsonSerializerSettings
      • JsonSerializerSettingsPreset
      • JsonTextReader
      • JsonTextWriter
      • JsonToken
      • JsonWriter
      • JsonWriter.State
      • JsonWriterException
      • MemberSerialization
      • MetadataPropertyHandling
      • MissingMemberHandling
      • NullValueHandling
      • ObjectCreationHandling
      • PreserveReferencesHandling
      • ReadType
      • ReferenceLoopHandling
      • Required
      • StringEscapeHandling
      • TypeNameHandling
      • WriteState
    • Bayat.Json.Bson
      • BsonArray
      • BsonBinary
      • BsonBinaryType
      • BsonBinaryWriter
      • BsonObject
      • BsonObjectId
      • BsonProperty
      • BsonReader
      • BsonRegex
      • BsonString
      • BsonToken
      • BsonType
      • BsonValue
      • BsonWriter
    • Bayat.Json.Converters
      • AnimatorConverter
      • AudioClipConverter
      • BinaryConverter
      • BoundsConverter
      • BsonObjectIdConverter
      • ColliderConverter
      • ColorConverter
      • CustomCreationConverter<T>
      • DateTimeConverterBase
      • DiscriminatedUnionConverter
      • EntityKeyMemberConverter
      • ExpandoObjectConverter
      • GameObjectConverter
      • HashSetConverter
      • IsoDateTimeConverter
      • JavaScriptDateTimeConverter
      • KeyValuePairConverter
      • MaterialConverter
      • MaterialConverter.JsonSerializedMaterialProperty
      • Matrix4x4Converter
      • MeshConverter
      • MeshConverter.SerializedIndices
      • MeshFilterConverter
      • ObjectJsonConverter
      • QuaternionConverter
      • RectConverter
      • RectTransformConverter
      • RegexConverter
      • RendererConverter
      • ResolutionConverter
      • ShaderConverter
      • SpriteConverter
      • StringEnumConverter
      • Texture2DConverter
      • TransformConverter
      • UnityBehaviourConverter
      • UnityComponentConverter
      • UnityMonoBehaviourConverter
      • UnityObjectConverter
      • UriConverter
      • VectorConverter
      • VersionConverter
      • XmlNodeConverter
    • Bayat.Json.Linq
      • CommentHandling
      • Extensions
      • IJEnumerable<T>
      • JArray
      • JConstructor
      • JContainer
      • JEnumerable<T>
      • JObject
      • JProperty
      • JPropertyDescriptor
      • JPropertyKeyedCollection
      • JRaw
      • JsonLoadSettings
      • JsonMergeSettings
      • JToken
      • JTokenEqualityComparer
      • JTokenReader
      • JTokenType
      • JTokenWriter
      • JValue
      • LineInfoHandling
      • MergeArrayHandling
      • MergeNullValueHandling
    • Bayat.Json.Linq.JsonPath
      • ArrayIndexFilter
      • ArrayMultipleIndexFilter
      • ArraySliceFilter
      • BooleanQueryExpression
      • CompositeExpression
      • FieldFilter
      • FieldMultipleFilter
      • JPath
      • PathFilter
      • QueryExpression
      • QueryFilter
      • QueryOperator
      • ScanFilter
    • Bayat.Json.Serialization
      • CachedAttributeGetter<T>
      • CamelCasePropertyNamesContractResolver
      • DefaultContractResolver
      • DefaultContractResolver.EnumerableDictionaryWrapper<TEnumeratorKey, TEnumeratorValue>
      • DefaultContractResolverState
      • DefaultReferenceResolver
      • DefaultSerializationBinder
      • DefaultSerializationBinder.TypeNameKey
      • DiagnosticsTraceWriter
      • ErrorContext
      • ErrorEventArgs
      • ExpressionValueProvider
      • ExtensionDataGetter
      • ExtensionDataSetter
      • IAttributeProvider
      • IContractResolver
      • IReferenceResolver
      • ITraceWriter
      • IValueProvider
      • JsonArrayContract
      • JsonContainerContract
      • JsonContract
      • JsonContractType
      • JsonDictionaryContract
      • JsonDynamicContract
      • JsonFormatterConverter
      • JsonISerializableContract
      • JsonLinqContract
      • JsonObjectContract
      • JsonPrimitiveContract
      • JsonProperty
      • JsonPropertyCollection
      • JsonSerializerInternalBase
      • JsonSerializerProxy
      • JsonSerializerReader
      • JsonSerializerReader.CreatorPropertyContext
      • JsonSerializerReader.PropertyPresence
      • JsonSerializerWriter
      • JsonStringContract
      • JsonTypeReflector
      • MemoryTraceWriter
      • ObjectConstructor<T>
      • OnErrorAttribute
      • ReflectionAttributeProvider
      • ReflectionValueProvider
      • ResolverContractKey
      • SerializationCallback
      • SerializationErrorCallback
      • TraceJsonReader
      • TraceJsonWriter
    • Bayat.Json.Shims
      • PreserveAttribute
    • Bayat.Json.Utilities
      • Base64Encoder
      • BidirectionalDictionary<TFirst, TSecond>
      • BufferUtils
      • CollectionUtils
      • CollectionWrapper<T>
      • ConvertUtils
      • ConvertUtils.ConvertResult
      • ConvertUtils.TypeConvertKey
      • Creator<T>
      • DateTimeParser
      • DateTimeUtils
      • DictionaryWrapper<TKey, TValue>
      • DynamicProxy<T>
      • DynamicProxyMetaObject<T>
      • DynamicUtils
      • DynamicUtils.BinderWrapper
      • EnumUtils
      • EnumValue<T>
      • ExpressionReflectionDelegateFactory
      • FSharpFunction
      • FSharpUtils
      • ImmutableCollectionsUtils
      • ImmutableCollectionsUtils.ImmutableCollectionTypeInfo
      • IWrappedCollection
      • IWrappedDictionary
      • JavaScriptUtils
      • JsonTokenUtils
      • LateBoundReflectionDelegateFactory
      • MathUtils
      • MethodCall<T, TResult>
      • MiscellaneousUtils
      • NoThrowExpressionVisitor
      • NoThrowGetBinderMember
      • NoThrowSetBinderMember
      • ParseResult
      • ParserTimeZone
      • PrimitiveTypeCode
      • PropertyNameTable
      • ReflectionDelegateFactory
      • ReflectionMember
      • ReflectionObject
      • ReflectionUtils
      • StringBuffer
      • StringReference
      • StringReferenceExtensions
      • StringUtils
      • ThreadSafeStore<TKey, TValue>
      • TypeInformation
      • ValidationUtils
    • Bayat.SaveSystem
      • AutoSave
      • AutoSaveManager
      • AutoSaveManager.LoadEvent
      • AutoSaveManager.SaveEvent
      • AutoSaveManagerWindow
      • AutoSaveManagerWindow.Styles
      • LoadEventArgs
      • LoadIntoEventArgs
      • SaveEventArgs
      • SaveSystemAPI
      • SaveSystemDefaultSettingsWindow
      • SaveSystemDefaultSettingsWindow.Styles
      • SaveSystemEditorResources
      • SaveSystemJsonSerializer
      • SaveSystemManager
      • SaveSystemSettings
      • SaveSystemSettingsPreset
      • WelcomeWindow
      • WelcomeWindow.Styles
    • Bayat.SaveSystem.Security
      • ISaveSystemEncryption
      • SaveSystemCryptoStream
      • SaveSystemSymmetricCryptoStream
      • SaveSystemSymmetricEncryption
    • Bayat.SaveSystem.Storage
      • BuiltInConnectionFactory
      • ConnectionStringFactory
      • FileStorageStream
      • IConnectionFactory
      • IStorage
      • IStorageStream
      • LocalDiskStorage
      • PlayerPrefsStorage
      • PlayerPrefsStorageStream
      • StorageBackup
      • StorageBase
      • StorageClearOperationResult
      • StorageConnectionString
      • StorageCopyOperationResult
      • StorageDeleteOperationResult
      • StorageFactory
      • StorageFullException
      • StorageInvalidIdentifierException
      • StorageItemNotFoundException
      • StorageListOptions
      • StorageMetaData
      • StorageMoveOperationResult
      • StorageOperationResult
      • StorageStream

    Class JArray

    Represents a JSON array.

    Inheritance
    System.Object
    JToken
    JContainer
    JArray
    Implements
    IJEnumerable<JToken>
    IJsonLineInfo
    System.ICloneable
    System.Dynamic.IDynamicMetaObjectProvider
    System.ComponentModel.ITypedList
    System.ComponentModel.IBindingList
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.Specialized.INotifyCollectionChanged
    System.Collections.Generic.IList<JToken>
    System.Collections.Generic.ICollection<JToken>
    System.Collections.Generic.IEnumerable<JToken>
    System.Collections.IEnumerable
    Inherited Members
    JContainer._listChanged
    JContainer._addingNew
    JContainer.ListChanged
    JContainer.AddingNew
    JContainer._collectionChanged
    JContainer.CollectionChanged
    JContainer.CheckReentrancy()
    JContainer.CreateChildrenCollection()
    JContainer.OnAddingNew(AddingNewEventArgs)
    JContainer.OnListChanged(ListChangedEventArgs)
    JContainer.OnCollectionChanged(NotifyCollectionChangedEventArgs)
    JContainer.HasValues
    JContainer.ContentsEqual(JContainer)
    JContainer.First
    JContainer.Last
    JContainer.Children()
    JContainer.Values<T>()
    JContainer.Descendants()
    JContainer.DescendantsAndSelf()
    JContainer.GetDescendants(Boolean)
    JContainer.IsMultiContent(Object)
    JContainer.EnsureParentToken(JToken, Boolean)
    JContainer.InsertItem(Int32, JToken, Boolean)
    JContainer.RemoveItemAt(Int32)
    JContainer.RemoveItem(JToken)
    JContainer.GetItem(Int32)
    JContainer.SetItem(Int32, JToken)
    JContainer.ClearItems()
    JContainer.ReplaceItem(JToken, JToken)
    JContainer.ContainsItem(JToken)
    JContainer.CopyItemsTo(Array, Int32)
    JContainer.IsTokenUnchanged(JToken, JToken)
    JContainer.ValidateToken(JToken, JToken)
    JContainer.Add(Object)
    JContainer.AddAndSkipParentCheck(JToken)
    JContainer.AddFirst(Object)
    JContainer.CreateFromContent(Object)
    JContainer.CreateWriter()
    JContainer.ReplaceAll(Object)
    JContainer.RemoveAll()
    JContainer.Merge(Object)
    JContainer.Merge(Object, JsonMergeSettings)
    JContainer.ReadTokenFrom(JsonReader, JsonLoadSettings)
    JContainer.ReadContentFrom(JsonReader, JsonLoadSettings)
    JContainer.ContentsHashCode()
    JContainer.ITypedList.GetListName(PropertyDescriptor[])
    JContainer.ITypedList.GetItemProperties(PropertyDescriptor[])
    JContainer.IList<JToken>.IndexOf(JToken)
    JContainer.IList<JToken>.Insert(Int32, JToken)
    JContainer.IList<JToken>.RemoveAt(Int32)
    JContainer.IList<JToken>.Item[Int32]
    JContainer.ICollection<JToken>.Add(JToken)
    JContainer.ICollection<JToken>.Clear()
    JContainer.ICollection<JToken>.Contains(JToken)
    JContainer.ICollection<JToken>.CopyTo(JToken[], Int32)
    JContainer.ICollection<JToken>.IsReadOnly
    JContainer.ICollection<JToken>.Remove(JToken)
    JContainer.IList.Add(Object)
    JContainer.IList.Clear()
    JContainer.IList.Contains(Object)
    JContainer.IList.IndexOf(Object)
    JContainer.IList.Insert(Int32, Object)
    JContainer.IList.IsFixedSize
    JContainer.IList.IsReadOnly
    JContainer.IList.Remove(Object)
    JContainer.IList.RemoveAt(Int32)
    JContainer.IList.Item[Int32]
    JContainer.ICollection.CopyTo(Array, Int32)
    JContainer.Count
    JContainer.ICollection.IsSynchronized
    JContainer.ICollection.SyncRoot
    JContainer.IBindingList.AddIndex(PropertyDescriptor)
    JContainer.IBindingList.AddNew()
    JContainer.IBindingList.AllowEdit
    JContainer.IBindingList.AllowNew
    JContainer.IBindingList.AllowRemove
    JContainer.IBindingList.ApplySort(PropertyDescriptor, ListSortDirection)
    JContainer.IBindingList.Find(PropertyDescriptor, Object)
    JContainer.IBindingList.IsSorted
    JContainer.IBindingList.RemoveIndex(PropertyDescriptor)
    JContainer.IBindingList.RemoveSort()
    JContainer.IBindingList.SortDirection
    JContainer.IBindingList.SortProperty
    JContainer.IBindingList.SupportsChangeNotification
    JContainer.IBindingList.SupportsSearching
    JContainer.IBindingList.SupportsSorting
    JContainer.MergeEnumerableContent(JContainer, IEnumerable, JsonMergeSettings)
    JToken.EqualityComparer
    JToken.Parent
    JToken.Root
    JToken.DeepEquals(JToken, JToken)
    JToken.Next
    JToken.Previous
    JToken.Path
    JToken.AddAfterSelf(Object)
    JToken.AddBeforeSelf(Object)
    JToken.Ancestors()
    JToken.AncestorsAndSelf()
    JToken.GetAncestors(Boolean)
    JToken.AfterSelf()
    JToken.BeforeSelf()
    JToken.Value<T>(Object)
    JToken.Children<T>()
    JToken.Remove()
    JToken.Replace(JToken)
    JToken.ToString()
    JToken.ToString(Formatting, JsonConverter[])
    JToken.IEnumerable.GetEnumerator()
    JToken.IEnumerable<JToken>.GetEnumerator()
    JToken.IJEnumerable<JToken>.Item[Object]
    JToken.CreateReader()
    JToken.ToObject<T>()
    JToken.ToObject(Type)
    JToken.ToObject<T>(JsonSerializer)
    JToken.ToObject(Type, JsonSerializer)
    JToken.ReadFrom(JsonReader)
    JToken.ReadFrom(JsonReader, JsonLoadSettings)
    JToken.SetLineInfo(IJsonLineInfo, JsonLoadSettings)
    JToken.SetLineInfo(Int32, Int32)
    JToken.IJsonLineInfo.HasLineInfo()
    JToken.IJsonLineInfo.LineNumber
    JToken.IJsonLineInfo.LinePosition
    JToken.SelectToken(String)
    JToken.SelectToken(String, Boolean)
    JToken.SelectTokens(String)
    JToken.SelectTokens(String, Boolean)
    JToken.GetMetaObject(Expression)
    JToken.IDynamicMetaObjectProvider.GetMetaObject(Expression)
    JToken.ICloneable.Clone()
    JToken.DeepClone()
    JToken.AddAnnotation(Object)
    JToken.Annotation<T>()
    JToken.Annotation(Type)
    JToken.Annotations<T>()
    JToken.Annotations(Type)
    JToken.RemoveAnnotations<T>()
    JToken.RemoveAnnotations(Type)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Bayat.Json.Linq
    Assembly: Bayat.Json.Runtime.dll
    Syntax
    public class JArray : JContainer, IJEnumerable<JToken>, IJsonLineInfo, ICloneable, IDynamicMetaObjectProvider, ITypedList, IBindingList, IList, ICollection, INotifyCollectionChanged, IList<JToken>, ICollection<JToken>, IEnumerable<JToken>, IEnumerable
    Examples

    Constructors

    | Improve this Doc View Source

    JArray()

    Initializes a new instance of the JArray class.

    Declaration
    public JArray()
    | Improve this Doc View Source

    JArray(JArray)

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

    Declaration
    public JArray(JArray other)
    Parameters
    Type Name Description
    JArray other

    A JArray object to copy from.

    | Improve this Doc View Source

    JArray(Object)

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

    Declaration
    public JArray(object content)
    Parameters
    Type Name Description
    System.Object content

    The contents of the array.

    | Improve this Doc View Source

    JArray(Object[])

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

    Declaration
    public JArray(params object[] content)
    Parameters
    Type Name Description
    System.Object[] content

    The contents of the array.

    Properties

    | Improve this Doc View Source

    ChildrenTokens

    Gets the container's children tokens.

    Declaration
    protected override IList<JToken> ChildrenTokens { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<JToken>

    The container's children tokens.

    Overrides
    JContainer.ChildrenTokens
    | Improve this Doc View Source

    IsReadOnly

    Gets a value indicating whether the System.Collections.Generic.ICollection<T> is read-only.

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean

    true if the System.Collections.Generic.ICollection<T> is read-only; otherwise, false.

    | Improve this Doc View Source

    Item[Int32]

    Gets or sets the JToken at the specified index.

    Declaration
    public JToken this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    JToken
    | Improve this Doc View Source

    Item[Object]

    Gets the JToken with the specified key.

    Declaration
    public override JToken this[object key] { get; set; }
    Parameters
    Type Name Description
    System.Object key
    Property Value
    Type Description
    JToken

    The JToken with the specified key.

    Overrides
    JToken.Item[Object]
    | Improve this Doc View Source

    Type

    Gets the node type for this JToken.

    Declaration
    public override JTokenType Type { get; }
    Property Value
    Type Description
    JTokenType

    The type.

    Overrides
    JToken.Type

    Methods

    | Improve this Doc View Source

    Add(JToken)

    Adds an item to the System.Collections.Generic.ICollection<T>.

    Declaration
    public void Add(JToken item)
    Parameters
    Type Name Description
    JToken item

    The object to add to the System.Collections.Generic.ICollection<T>.

    Exceptions
    Type Condition
    System.NotSupportedException

    The System.Collections.Generic.ICollection<T> is read-only.

    | Improve this Doc View Source

    Clear()

    Removes all items from the System.Collections.Generic.ICollection<T>.

    Declaration
    public void Clear()
    Exceptions
    Type Condition
    System.NotSupportedException

    The System.Collections.Generic.ICollection<T> is read-only.

    | Improve this Doc View Source

    CloneToken()

    Declaration
    public override JToken CloneToken()
    Returns
    Type Description
    JToken
    Overrides
    JToken.CloneToken()
    | Improve this Doc View Source

    Contains(JToken)

    Determines whether the System.Collections.Generic.ICollection<T> contains a specific value.

    Declaration
    public bool Contains(JToken item)
    Parameters
    Type Name Description
    JToken item

    The object to locate in the System.Collections.Generic.ICollection<T>.

    Returns
    Type Description
    System.Boolean

    true if item is found in the System.Collections.Generic.ICollection<T>; otherwise, false.

    | Improve this Doc View Source

    CopyTo(JToken[], Int32)

    Copies to.

    Declaration
    public void CopyTo(JToken[] array, int arrayIndex)
    Parameters
    Type Name Description
    JToken[] array

    The array.

    System.Int32 arrayIndex

    Index of the array.

    | Improve this Doc View Source

    DeepEquals(JToken)

    Declaration
    public override bool DeepEquals(JToken node)
    Parameters
    Type Name Description
    JToken node
    Returns
    Type Description
    System.Boolean
    Overrides
    JToken.DeepEquals(JToken)
    | Improve this Doc View Source

    FromObject(Object)

    Creates a JArray from an object.

    Declaration
    public static JArray FromObject(object o)
    Parameters
    Type Name Description
    System.Object o

    The object that will be used to create JArray.

    Returns
    Type Description
    JArray

    A JArray with the values of the specified object

    | Improve this Doc View Source

    FromObject(Object, JsonSerializer)

    Creates a JArray from an object.

    Declaration
    public static JArray FromObject(object o, JsonSerializer jsonSerializer)
    Parameters
    Type Name Description
    System.Object o

    The object that will be used to create JArray.

    JsonSerializer jsonSerializer

    The JsonSerializer that will be used to read the object.

    Returns
    Type Description
    JArray

    A JArray with the values of the specified object

    | Improve this Doc View Source

    GetDeepHashCode()

    Declaration
    public override int GetDeepHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    JToken.GetDeepHashCode()
    | Improve this Doc View Source

    GetEnumerator()

    Returns an enumerator that iterates through the collection.

    Declaration
    public IEnumerator<JToken> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<JToken>

    A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection.

    | Improve this Doc View Source

    IndexOf(JToken)

    Determines the index of a specific item in the System.Collections.Generic.IList<T>.

    Declaration
    public int IndexOf(JToken item)
    Parameters
    Type Name Description
    JToken item

    The object to locate in the System.Collections.Generic.IList<T>.

    Returns
    Type Description
    System.Int32

    The index of item if found in the list; otherwise, -1.

    | Improve this Doc View Source

    IndexOfItem(JToken)

    Declaration
    public override int IndexOfItem(JToken item)
    Parameters
    Type Name Description
    JToken item
    Returns
    Type Description
    System.Int32
    Overrides
    JContainer.IndexOfItem(JToken)
    | Improve this Doc View Source

    Insert(Int32, JToken)

    Inserts an item to the System.Collections.Generic.IList<T> at the specified index.

    Declaration
    public void Insert(int index, JToken item)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index at which item should be inserted.

    JToken item

    The object to insert into the System.Collections.Generic.IList<T>.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    index is not a valid index in the System.Collections.Generic.IList<T>.

    System.NotSupportedException

    The System.Collections.Generic.IList<T> is read-only.

    | Improve this Doc View Source

    Load(JsonReader)

    Loads an JArray from a JsonReader.

    Declaration
    public static JArray Load(JsonReader reader)
    Parameters
    Type Name Description
    JsonReader reader

    A JsonReader that will be read for the content of the JArray.

    Returns
    Type Description
    JArray

    A JArray that contains the JSON that was read from the specified JsonReader.

    | Improve this Doc View Source

    Load(JsonReader, JsonLoadSettings)

    Loads an JArray from a JsonReader.

    Declaration
    public static JArray Load(JsonReader reader, JsonLoadSettings settings)
    Parameters
    Type Name Description
    JsonReader reader

    A JsonReader that will be read for the content of the JArray.

    JsonLoadSettings settings

    The JsonLoadSettings used to load the JSON. If this is null, default load settings will be used.

    Returns
    Type Description
    JArray

    A JArray that contains the JSON that was read from the specified JsonReader.

    | Improve this Doc View Source

    MergeItem(Object, JsonMergeSettings)

    Declaration
    public override void MergeItem(object content, JsonMergeSettings settings)
    Parameters
    Type Name Description
    System.Object content
    JsonMergeSettings settings
    Overrides
    JContainer.MergeItem(Object, JsonMergeSettings)
    | Improve this Doc View Source

    Parse(String)

    Load a JArray from a string that contains JSON.

    Declaration
    public static JArray Parse(string json)
    Parameters
    Type Name Description
    System.String json

    A System.String that contains JSON.

    Returns
    Type Description
    JArray

    A JArray populated from the string that contains JSON.

    Examples
    | Improve this Doc View Source

    Parse(String, JsonLoadSettings)

    Load a JArray from a string that contains JSON.

    Declaration
    public static JArray Parse(string json, JsonLoadSettings settings)
    Parameters
    Type Name Description
    System.String json

    A System.String that contains JSON.

    JsonLoadSettings settings

    The JsonLoadSettings used to load the JSON. If this is null, default load settings will be used.

    Returns
    Type Description
    JArray

    A JArray populated from the string that contains JSON.

    Examples
    | Improve this Doc View Source

    Remove(JToken)

    Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection<T>.

    Declaration
    public bool Remove(JToken item)
    Parameters
    Type Name Description
    JToken item

    The object to remove from the System.Collections.Generic.ICollection<T>.

    Returns
    Type Description
    System.Boolean

    true if item was successfully removed from the System.Collections.Generic.ICollection<T>; otherwise, false. This method also returns false if item is not found in the original System.Collections.Generic.ICollection<T>.

    Exceptions
    Type Condition
    System.NotSupportedException

    The System.Collections.Generic.ICollection<T> is read-only.

    | Improve this Doc View Source

    RemoveAt(Int32)

    Removes the System.Collections.Generic.IList<T> item at the specified index.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index of the item to remove.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    index is not a valid index in the System.Collections.Generic.IList<T>.

    System.NotSupportedException

    The System.Collections.Generic.IList<T> is read-only.

    | Improve this Doc View Source

    WriteTo(JsonWriter, JsonConverter[])

    Writes this token to a JsonWriter.

    Declaration
    public override void WriteTo(JsonWriter writer, params JsonConverter[] converters)
    Parameters
    Type Name Description
    JsonWriter writer

    A JsonWriter into which this method will write.

    JsonConverter[] converters

    A collection of JsonConverter which will be used when writing the token.

    Overrides
    JToken.WriteTo(JsonWriter, JsonConverter[])

    Implements

    IJEnumerable<T>
    IJsonLineInfo
    System.ICloneable
    System.Dynamic.IDynamicMetaObjectProvider
    System.ComponentModel.ITypedList
    System.ComponentModel.IBindingList
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.Specialized.INotifyCollectionChanged
    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable

    Extension Methods

    Extensions.Ancestors<T>(IEnumerable<T>)
    Extensions.AncestorsAndSelf<T>(IEnumerable<T>)
    Extensions.Values(IEnumerable<JToken>, Object)
    Extensions.Values(IEnumerable<JToken>)
    Extensions.Values<U>(IEnumerable<JToken>, Object)
    Extensions.Values<U>(IEnumerable<JToken>)
    Extensions.Value<U>(IEnumerable<JToken>)
    Extensions.Value<T, U>(IEnumerable<T>)
    Extensions.Values<T, U>(IEnumerable<T>, Object)
    Extensions.Children<T>(IEnumerable<T>)
    Extensions.Children<T, U>(IEnumerable<T>)
    Extensions.Convert<T, U>(IEnumerable<T>)
    Extensions.Convert<T, U>(T)
    Extensions.AsJEnumerable(IEnumerable<JToken>)
    Extensions.AsJEnumerable<T>(IEnumerable<T>)
    CollectionUtils.AddRange<T>(IList<T>, IEnumerable<T>)
    CollectionUtils.AddDistinct<T>(IList<T>, T)
    CollectionUtils.AddDistinct<T>(IList<T>, T, IEqualityComparer<T>)
    CollectionUtils.ContainsValue<TSource>(IEnumerable<TSource>, TSource, IEqualityComparer<TSource>)
    CollectionUtils.AddRangeDistinct<T>(IList<T>, IEnumerable<T>, IEqualityComparer<T>)
    CollectionUtils.IndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    DynamicUtils.GetDynamicMemberNames(IDynamicMetaObjectProvider)
    StringUtils.ForgivingCaseSensitiveFind<TSource>(IEnumerable<TSource>, Func<TSource, String>, String)
    StringExtensions.ToSeparatedString(IEnumerable, String)
    StringExtensions.ToCommaSeparatedString(IEnumerable)
    StringExtensions.ToLineSeparatedString(IEnumerable)
    • Improve this Doc
    • View Source
    • 0 Comments
    In This Article
    • Constructors
      • JArray()
      • JArray(JArray)
      • JArray(Object)
      • JArray(Object[])
    • Properties
      • ChildrenTokens
      • IsReadOnly
      • Item[Int32]
      • Item[Object]
      • Type
    • Methods
      • Add(JToken)
      • Clear()
      • CloneToken()
      • Contains(JToken)
      • CopyTo(JToken[], Int32)
      • DeepEquals(JToken)
      • FromObject(Object)
      • FromObject(Object, JsonSerializer)
      • GetDeepHashCode()
      • GetEnumerator()
      • IndexOf(JToken)
      • IndexOfItem(JToken)
      • Insert(Int32, JToken)
      • Load(JsonReader)
      • Load(JsonReader, JsonLoadSettings)
      • MergeItem(Object, JsonMergeSettings)
      • Parse(String)
      • Parse(String, JsonLoadSettings)
      • Remove(JToken)
      • RemoveAt(Int32)
      • WriteTo(JsonWriter, JsonConverter[])
    • Implements
    • Extension Methods