Constructors
- JObject() Initializes a new instance of the JObject class.
- JObject(JObject) Initializes a new instance of the JObject class from another JObject object.
- JObject(Object) Initializes a new instance of the JObject class with the specified content.
- JObject(Object[]) Initializes a new instance of the JObject class with the specified content.
Methods
-
Add(String,
JToken) sealed Adds the specified property name. -
Contains
Key(String) sealed Determines whether the JSON object has the specified property name. -
From
Object(Object) static Creates a JObject from an object. -
From
Object(Object, static Creates a JObject from an object.Json Serializer) -
Get
Enumerator() sealed Returns an enumerator that can be used to iterate through the collection. -
Get
Meta protectedvirtual Returns the DynamicMetaObject responsible for binding operations performed on this object.Object(Expression) -
Get
Value(String) Gets the JToken with the specified property name. -
Get
Value(String, 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 StringComparison will be used to match a property.String Comparison) -
Load(Json
Reader) static Loads a JObject from a JsonReader. -
Load(Json
Reader, static Loads a JObject from a JsonReader.Json Load Settings) -
Load
Async(Json static Asynchronously loads a JObject from a JsonReader.Reader, Cancellation Token) -
Load
Async(Json static Asynchronously loads a JObject from a JsonReader.Reader, Json Load Settings, Cancellation Token) -
On
Property protectedvirtual Raises the PropertyChanged event with the provided arguments.Changed(String) -
On
Property protectedvirtual Raises the PropertyChanging event with the provided arguments.Changing(String) - Parse(String) static Load a JObject from a string that contains JSON.
-
Parse(String,
Json static Load a JObject from a string that contains JSON.Load Settings) - Properties() Gets an IEnumerable`1 of JProperty of this object's properties.
- Property(String) Gets a JProperty with the specified name.
-
Property(String,
String Gets the JProperty with the specified name. The exact name will be searched for first and if no matching property is found then the StringComparison will be used to match a property.Comparison) -
Property
Values() Gets a JEnumerable`1 of JToken of this object's property values. - Remove(String) sealed Removes the property with the specified name.
-
Try
Get sealed Tries to get the JToken with the specified property name.Value(String, JToken&) -
Try
Get 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 StringComparison will be used to match a property.Value(String, String Comparison, JToken&) -
Write
To(Json virtual Writes this token to a JsonWriter.Writer, Json Converter[]) -
Write
To virtual Writes this token to a JsonWriter asynchronously.Async(Json Writer, Cancellation Token, Json Converter[])
Properties
-
Children
Tokens protectedvirtual Gets the container's children tokens. - Item sealed
-
System.
Collections. privatesealedGeneric. ICollection<System. Collections. Generic. Key Value Pair<System. String, Newtonsoft. Json. Linq. JToken>>. Is Read Only -
System.
Collections. privatesealedGeneric. IDictionary<System. String, Newtonsoft. Json. Linq. JToken>. Keys -
System.
Collections. privatesealedGeneric. IDictionary<System. String, Newtonsoft. Json. Linq. JToken>. Values - Type virtual Gets the node type for this JToken.
Events
-
Property
Changed sealed Occurs when a property value changes. -
Property
Changing sealed Occurs when a property value is changing.