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

    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 JObject

    Represents a JSON object.

    Inheritance
    System.Object
    JToken
    JContainer
    JObject
    Implements
    IJEnumerable<JToken>
    IJsonLineInfo
    System.ICloneable
    System.Dynamic.IDynamicMetaObjectProvider
    System.Collections.Generic.IList<JToken>
    System.Collections.Generic.ICollection<JToken>
    System.Collections.Generic.IEnumerable<JToken>
    System.ComponentModel.ITypedList
    System.ComponentModel.IBindingList
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.Specialized.INotifyCollectionChanged
    System.Collections.Generic.IDictionary<System.String, JToken>
    System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, JToken>>
    System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, JToken>>
    System.Collections.IEnumerable
    System.ComponentModel.INotifyPropertyChanged
    System.ComponentModel.ICustomTypeDescriptor
    System.ComponentModel.INotifyPropertyChanging
    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.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.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.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 JObject : JContainer, IJEnumerable<JToken>, IJsonLineInfo, ICloneable, IDynamicMetaObjectProvider, IList<JToken>, ICollection<JToken>, IEnumerable<JToken>, ITypedList, IBindingList, IList, ICollection, INotifyCollectionChanged, IDictionary<string, JToken>, ICollection<KeyValuePair<string, JToken>>, IEnumerable<KeyValuePair<string, JToken>>, IEnumerable, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertyChanging
    Examples

    Constructors

    | Improve this Doc View Source

    JObject()

    Initializes a new instance of the JObject class.

    Declaration
    public JObject()
    | Improve this Doc View Source

    JObject(JObject)

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

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

    A JObject object to copy from.

    | Improve this Doc View Source

    JObject(Object)

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

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

    The contents of the object.

    | Improve this Doc View Source

    JObject(Object[])

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

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

    The contents of the object.

    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

    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

    Item[String]

    Gets or sets the JToken with the specified property name.

    Declaration
    public JToken this[string propertyName] { get; set; }
    Parameters
    Type Name Description
    System.String propertyName
    Property Value
    Type Description
    JToken
    | 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(String, JToken)

    Adds the specified property name.

    Declaration
    public void Add(string propertyName, JToken value)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property.

    JToken value

    The value.

    | Improve this Doc View Source

    CloneToken()

    Declaration
    public override JToken CloneToken()
    Returns
    Type Description
    JToken
    Overrides
    JToken.CloneToken()
    | 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 JObject from an object.

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

    The object that will be used to create JObject.

    Returns
    Type Description
    JObject

    A JObject with the values of the specified object

    | Improve this Doc View Source

    FromObject(Object, JsonSerializer)

    Creates a JObject from an object.

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

    The object that will be used to create JObject.

    JsonSerializer jsonSerializer

    The JsonSerializer that will be used to read the object.

    Returns
    Type Description
    JObject

    A JObject 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<KeyValuePair<string, JToken>> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, JToken>>

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

    | Improve this Doc View Source

    GetMetaObject(Expression)

    Returns the System.Dynamic.DynamicMetaObject responsible for binding operations performed on this object.

    Declaration
    protected override DynamicMetaObject GetMetaObject(Expression parameter)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression parameter

    The expression tree representation of the runtime value.

    Returns
    Type Description
    System.Dynamic.DynamicMetaObject

    The System.Dynamic.DynamicMetaObject to bind this object.

    Overrides
    JToken.GetMetaObject(Expression)
    | Improve this Doc View Source

    GetValue(String)

    Gets the JToken with the specified property name.

    Declaration
    public JToken GetValue(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property.

    Returns
    Type Description
    JToken

    The JToken with the specified property name.

    | Improve this Doc View Source

    GetValue(String, StringComparison)

    Gets the JToken with the specified property name. The exact property name will be searched for first and if no matching property is found then the System.StringComparison will be used to match a property.

    Declaration
    public JToken GetValue(string propertyName, StringComparison comparison)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property.

    System.StringComparison comparison

    One of the enumeration values that specifies how the strings will be compared.

    Returns
    Type Description
    JToken

    The JToken with the specified property name.

    | 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

    InsertItem(Int32, JToken, Boolean)

    Declaration
    public override void InsertItem(int index, JToken item, bool skipParentCheck)
    Parameters
    Type Name Description
    System.Int32 index
    JToken item
    System.Boolean skipParentCheck
    Overrides
    JContainer.InsertItem(Int32, JToken, Boolean)
    | Improve this Doc View Source

    Load(JsonReader)

    Loads an JObject from a JsonReader.

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

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

    Returns
    Type Description
    JObject

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

    | Improve this Doc View Source

    Load(JsonReader, JsonLoadSettings)

    Loads an JObject from a JsonReader.

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

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

    JsonLoadSettings settings

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

    Returns
    Type Description
    JObject

    A JObject 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

    OnPropertyChanged(String)

    Raises the PropertyChanged event with the provided arguments.

    Declaration
    protected virtual void OnPropertyChanged(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property.

    | Improve this Doc View Source

    OnPropertyChanging(String)

    Raises the PropertyChanging event with the provided arguments.

    Declaration
    protected virtual void OnPropertyChanging(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property.

    | Improve this Doc View Source

    Parse(String)

    Load a JObject from a string that contains JSON.

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

    A System.String that contains JSON.

    Returns
    Type Description
    JObject

    A JObject populated from the string that contains JSON.

    Examples
    | Improve this Doc View Source

    Parse(String, JsonLoadSettings)

    Load a JObject from a string that contains JSON.

    Declaration
    public static JObject 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
    JObject

    A JObject populated from the string that contains JSON.

    Examples
    | Improve this Doc View Source

    Properties()

    Gets an System.Collections.Generic.IEnumerable<T> of this object's properties.

    Declaration
    public IEnumerable<JProperty> Properties()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<JProperty>

    An System.Collections.Generic.IEnumerable<T> of this object's properties.

    | Improve this Doc View Source

    Property(String)

    Gets a JProperty the specified name.

    Declaration
    public JProperty Property(string name)
    Parameters
    Type Name Description
    System.String name

    The property name.

    Returns
    Type Description
    JProperty

    A JProperty with the specified name or null.

    | Improve this Doc View Source

    PropertyValues()

    Gets an JEnumerable<T> of this object's property values.

    Declaration
    public JEnumerable<JToken> PropertyValues()
    Returns
    Type Description
    JEnumerable<JToken>

    An JEnumerable<T> of this object's property values.

    | Improve this Doc View Source

    Remove(String)

    Removes the property with the specified name.

    Declaration
    public bool Remove(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property.

    Returns
    Type Description
    System.Boolean

    true if item was successfully removed; otherwise, false.

    | Improve this Doc View Source

    TryGetValue(String, out JToken)

    Tries the get value.

    Declaration
    public bool TryGetValue(string propertyName, out JToken value)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property.

    JToken value

    The value.

    Returns
    Type Description
    System.Boolean

    true if a value was successfully retrieved; otherwise, false.

    | Improve this Doc View Source

    TryGetValue(String, StringComparison, out JToken)

    Tries to get the JToken with the specified property name. The exact property name will be searched for first and if no matching property is found then the System.StringComparison will be used to match a property.

    Declaration
    public bool TryGetValue(string propertyName, StringComparison comparison, out JToken value)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property.

    System.StringComparison comparison

    One of the enumeration values that specifies how the strings will be compared.

    JToken value

    The value.

    Returns
    Type Description
    System.Boolean

    true if a value was successfully retrieved; otherwise, false.

    | Improve this Doc View Source

    ValidateToken(JToken, JToken)

    Declaration
    public override void ValidateToken(JToken o, JToken existing)
    Parameters
    Type Name Description
    JToken o
    JToken existing
    Overrides
    JContainer.ValidateToken(JToken, JToken)
    | 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[])

    Events

    | Improve this Doc View Source

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler
    | Improve this Doc View Source

    PropertyChanging

    Occurs when a property value is changing.

    Declaration
    public event PropertyChangingEventHandler PropertyChanging
    Event Type
    Type Description
    System.ComponentModel.PropertyChangingEventHandler

    Explicit Interface Implementations

    | Improve this Doc View Source

    ICollection<KeyValuePair<String, JToken>>.Add(KeyValuePair<String, JToken>)

    Declaration
    void ICollection<KeyValuePair<string, JToken>>.Add(KeyValuePair<string, JToken> item)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<System.String, JToken> item
    | Improve this Doc View Source

    ICollection<KeyValuePair<String, JToken>>.Clear()

    Declaration
    void ICollection<KeyValuePair<string, JToken>>.Clear()
    | Improve this Doc View Source

    ICollection<KeyValuePair<String, JToken>>.Contains(KeyValuePair<String, JToken>)

    Declaration
    bool ICollection<KeyValuePair<string, JToken>>.Contains(KeyValuePair<string, JToken> item)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<System.String, JToken> item
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ICollection<KeyValuePair<String, JToken>>.CopyTo(KeyValuePair<String, JToken>[], Int32)

    Declaration
    void ICollection<KeyValuePair<string, JToken>>.CopyTo(KeyValuePair<string, JToken>[] array, int arrayIndex)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<System.String, JToken>[] array
    System.Int32 arrayIndex
    | Improve this Doc View Source

    ICollection<KeyValuePair<String, JToken>>.IsReadOnly

    Declaration
    bool ICollection<KeyValuePair<string, JToken>>.IsReadOnly { get; }
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ICollection<KeyValuePair<String, JToken>>.Remove(KeyValuePair<String, JToken>)

    Declaration
    bool ICollection<KeyValuePair<string, JToken>>.Remove(KeyValuePair<string, JToken> item)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<System.String, JToken> item
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IDictionary<String, JToken>.ContainsKey(String)

    Declaration
    bool IDictionary<string, JToken>.ContainsKey(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IDictionary<String, JToken>.Keys

    Declaration
    ICollection<string> IDictionary<string, JToken>.Keys { get; }
    Returns
    Type Description
    System.Collections.Generic.ICollection<System.String>
    | Improve this Doc View Source

    IDictionary<String, JToken>.Values

    Declaration
    ICollection<JToken> IDictionary<string, JToken>.Values { get; }
    Returns
    Type Description
    System.Collections.Generic.ICollection<JToken>
    | Improve this Doc View Source

    ICustomTypeDescriptor.GetAttributes()

    Returns a collection of custom attributes for this instance of a component.

    Declaration
    AttributeCollection ICustomTypeDescriptor.GetAttributes()
    Returns
    Type Description
    System.ComponentModel.AttributeCollection

    An System.ComponentModel.AttributeCollection containing the attributes for this object.

    | Improve this Doc View Source

    ICustomTypeDescriptor.GetClassName()

    Returns the class name of this instance of a component.

    Declaration
    string ICustomTypeDescriptor.GetClassName()
    Returns
    Type Description
    System.String

    The class name of the object, or null if the class does not have a name.

    | Improve this Doc View Source

    ICustomTypeDescriptor.GetComponentName()

    Returns the name of this instance of a component.

    Declaration
    string ICustomTypeDescriptor.GetComponentName()
    Returns
    Type Description
    System.String

    The name of the object, or null if the object does not have a name.

    | Improve this Doc View Source

    ICustomTypeDescriptor.GetConverter()

    Returns a type converter for this instance of a component.

    Declaration
    TypeConverter ICustomTypeDescriptor.GetConverter()
    Returns
    Type Description
    System.ComponentModel.TypeConverter

    A System.ComponentModel.TypeConverter that is the converter for this object, or null if there is no System.ComponentModel.TypeConverter for this object.

    | Improve this Doc View Source

    ICustomTypeDescriptor.GetDefaultEvent()

    Returns the default event for this instance of a component.

    Declaration
    EventDescriptor ICustomTypeDescriptor.GetDefaultEvent()
    Returns
    Type Description
    System.ComponentModel.EventDescriptor

    An System.ComponentModel.EventDescriptor that represents the default event for this object, or null if this object does not have events.

    | Improve this Doc View Source

    ICustomTypeDescriptor.GetDefaultProperty()

    Returns the default property for this instance of a component.

    Declaration
    PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty()
    Returns
    Type Description
    System.ComponentModel.PropertyDescriptor

    A System.ComponentModel.PropertyDescriptor that represents the default property for this object, or null if this object does not have properties.

    | Improve this Doc View Source

    ICustomTypeDescriptor.GetEditor(Type)

    Returns an editor of the specified type for this instance of a component.

    Declaration
    object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
    Parameters
    Type Name Description
    System.Type editorBaseType

    A System.Type that represents the editor for this object.

    Returns
    Type Description
    System.Object

    An System.Object of the specified type that is the editor for this object, or null if the editor cannot be found.

    | Improve this Doc View Source

    ICustomTypeDescriptor.GetEvents()

    Returns the events for this instance of a component.

    Declaration
    EventDescriptorCollection ICustomTypeDescriptor.GetEvents()
    Returns
    Type Description
    System.ComponentModel.EventDescriptorCollection

    An System.ComponentModel.EventDescriptorCollection that represents the events for this component instance.

    | Improve this Doc View Source

    ICustomTypeDescriptor.GetEvents(Attribute[])

    Returns the events for this instance of a component using the specified attribute array as a filter.

    Declaration
    EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes)
    Parameters
    Type Name Description
    System.Attribute[] attributes

    An array of type System.Attribute that is used as a filter.

    Returns
    Type Description
    System.ComponentModel.EventDescriptorCollection

    An System.ComponentModel.EventDescriptorCollection that represents the filtered events for this component instance.

    | Improve this Doc View Source

    ICustomTypeDescriptor.GetProperties()

    Returns the properties for this instance of a component.

    Declaration
    PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties()
    Returns
    Type Description
    System.ComponentModel.PropertyDescriptorCollection

    A System.ComponentModel.PropertyDescriptorCollection that represents the properties for this component instance.

    | Improve this Doc View Source

    ICustomTypeDescriptor.GetProperties(Attribute[])

    Returns the properties for this instance of a component using the attribute array as a filter.

    Declaration
    PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
    Parameters
    Type Name Description
    System.Attribute[] attributes

    An array of type System.Attribute that is used as a filter.

    Returns
    Type Description
    System.ComponentModel.PropertyDescriptorCollection

    A System.ComponentModel.PropertyDescriptorCollection that represents the filtered properties for this component instance.

    | Improve this Doc View Source

    ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)

    Returns an object that contains the property described by the specified property descriptor.

    Declaration
    object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor pd)
    Parameters
    Type Name Description
    System.ComponentModel.PropertyDescriptor pd

    A System.ComponentModel.PropertyDescriptor that represents the property whose owner is to be found.

    Returns
    Type Description
    System.Object

    An System.Object that represents the owner of the specified property.

    Implements

    IJEnumerable<T>
    IJsonLineInfo
    System.ICloneable
    System.Dynamic.IDynamicMetaObjectProvider
    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.ComponentModel.ITypedList
    System.ComponentModel.IBindingList
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.Specialized.INotifyCollectionChanged
    System.Collections.Generic.IDictionary<TKey, TValue>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    System.ComponentModel.INotifyPropertyChanged
    System.ComponentModel.ICustomTypeDescriptor
    System.ComponentModel.INotifyPropertyChanging

    Extension Methods

    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.Convert<T, U>(T)
    Extensions.AsJEnumerable(IEnumerable<JToken>)
    CollectionUtils.AddRange<T>(IList<T>, IEnumerable<T>)
    CollectionUtils.AddDistinct<T>(IList<T>, T)
    CollectionUtils.AddDistinct<T>(IList<T>, T, IEqualityComparer<T>)
    CollectionUtils.AddRangeDistinct<T>(IList<T>, IEnumerable<T>, IEqualityComparer<T>)
    DynamicUtils.GetDynamicMemberNames(IDynamicMetaObjectProvider)
    StringExtensions.ToSeparatedString(IEnumerable, String)
    StringExtensions.ToCommaSeparatedString(IEnumerable)
    StringExtensions.ToLineSeparatedString(IEnumerable)
    • Improve this Doc
    • View Source
    • 0 Comments
    In This Article
    • Constructors
      • JObject()
      • JObject(JObject)
      • JObject(Object)
      • JObject(Object[])
    • Properties
      • ChildrenTokens
      • Item[Object]
      • Item[String]
      • Type
    • Methods
      • Add(String, JToken)
      • CloneToken()
      • DeepEquals(JToken)
      • FromObject(Object)
      • FromObject(Object, JsonSerializer)
      • GetDeepHashCode()
      • GetEnumerator()
      • GetMetaObject(Expression)
      • GetValue(String)
      • GetValue(String, StringComparison)
      • IndexOfItem(JToken)
      • InsertItem(Int32, JToken, Boolean)
      • Load(JsonReader)
      • Load(JsonReader, JsonLoadSettings)
      • MergeItem(Object, JsonMergeSettings)
      • OnPropertyChanged(String)
      • OnPropertyChanging(String)
      • Parse(String)
      • Parse(String, JsonLoadSettings)
      • Properties()
      • Property(String)
      • PropertyValues()
      • Remove(String)
      • TryGetValue(String, out JToken)
      • TryGetValue(String, StringComparison, out JToken)
      • ValidateToken(JToken, JToken)
      • WriteTo(JsonWriter, JsonConverter[])
    • Events
      • PropertyChanged
      • PropertyChanging
    • Explicit Interface Implementations
      • ICollection<KeyValuePair<String, JToken>>.Add(KeyValuePair<String, JToken>)
      • ICollection<KeyValuePair<String, JToken>>.Clear()
      • ICollection<KeyValuePair<String, JToken>>.Contains(KeyValuePair<String, JToken>)
      • ICollection<KeyValuePair<String, JToken>>.CopyTo(KeyValuePair<String, JToken>[], Int32)
      • ICollection<KeyValuePair<String, JToken>>.IsReadOnly
      • ICollection<KeyValuePair<String, JToken>>.Remove(KeyValuePair<String, JToken>)
      • IDictionary<String, JToken>.ContainsKey(String)
      • IDictionary<String, JToken>.Keys
      • IDictionary<String, JToken>.Values
      • ICustomTypeDescriptor.GetAttributes()
      • ICustomTypeDescriptor.GetClassName()
      • ICustomTypeDescriptor.GetComponentName()
      • ICustomTypeDescriptor.GetConverter()
      • ICustomTypeDescriptor.GetDefaultEvent()
      • ICustomTypeDescriptor.GetDefaultProperty()
      • ICustomTypeDescriptor.GetEditor(Type)
      • ICustomTypeDescriptor.GetEvents()
      • ICustomTypeDescriptor.GetEvents(Attribute[])
      • ICustomTypeDescriptor.GetProperties()
      • ICustomTypeDescriptor.GetProperties(Attribute[])
      • ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)
    • Implements
    • Extension Methods