I
InsightNexus

Class JObject | Azure SDK for Net

Author

Emma Terry

Published Feb 16, 2026

Inheritance

JObject

Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Newtonsoft.Json.dll
Syntax
public class JObject : Newtonsoft.Json.Linq.JContainer, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,Newtonsoft.Json.Linq.JToken>>, System.Collections.Generic.IDictionary<string,Newtonsoft.Json.Linq.JToken>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Newtonsoft.Json.Linq.JToken>>, System.ComponentModel.ICustomTypeDescriptor, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging

Constructors

JObject()

Declaration
public JObject ();

JObject(JObject)

Declaration
public JObject (Newtonsoft.Json.Linq.JObject other);
Parameters

JObject(Object)

Declaration
public JObject (object content);
Parameters

JObject(Object[])

Declaration
public JObject (params object[] content);
Parameters

Properties

ChildrenTokens

Declaration
protected override System.Collections.Generic.IList<Newtonsoft.Json.Linq.JToken> ChildrenTokens { get; }
Property Value

Item[String]

Declaration
public Newtonsoft.Json.Linq.JToken this[string propertyName] { get; set; }
Parameters
Property Value

Item[Object]

Declaration
public override Newtonsoft.Json.Linq.JToken this[object key] { get; set; }
Parameters
Property Value

Type

Declaration
public override Newtonsoft.Json.Linq.JTokenType Type { get; }
Property Value

Methods

Add(String, JToken)

Declaration
public void Add (string propertyName, Newtonsoft.Json.Linq.JToken value);
Parameters

FromObject(Object)

Declaration
public static Newtonsoft.Json.Linq.JObject FromObject (object o);
Parameters
Returns

FromObject(Object, JsonSerializer)

Declaration
public static Newtonsoft.Json.Linq.JObject FromObject (object o, Newtonsoft.Json.JsonSerializer jsonSerializer);
Parameters
Returns

GetEnumerator()

Declaration
[System.Runtime.CompilerServices.IteratorStateMachine(typeof())]
public System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string,Newtonsoft.Json.Linq.JToken>> GetEnumerator ();
Returns

GetMetaObject(Expression)

GetValue(String)

Declaration
public Newtonsoft.Json.Linq.JToken GetValue (string propertyName);
Parameters
Returns

GetValue(String, StringComparison)

Declaration
public Newtonsoft.Json.Linq.JToken GetValue (string propertyName, StringComparison comparison);
Parameters
Returns

Load(JsonReader)

Declaration
public static Newtonsoft.Json.Linq.JObject Load (Newtonsoft.Json.JsonReader reader);
Parameters
Returns

Load(JsonReader, JsonLoadSettings)

Declaration
public static Newtonsoft.Json.Linq.JObject Load (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings);
Parameters
Returns

LoadAsync(JsonReader, CancellationToken)

Declaration
public static System.Threading.Tasks.Task<Newtonsoft.Json.Linq.JObject> LoadAsync (Newtonsoft.Json.JsonReader reader, System.Threading.CancellationToken cancellationToken = null);
Parameters
Returns

LoadAsync(JsonReader, JsonLoadSettings, CancellationToken)

Declaration
public static System.Threading.Tasks.Task<Newtonsoft.Json.Linq.JObject> LoadAsync (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings, System.Threading.CancellationToken cancellationToken = null);
Parameters
Returns

OnPropertyChanged(String)

Declaration
protected virtual void OnPropertyChanged (string propertyName);
Parameters

OnPropertyChanging(String)

Declaration
protected virtual void OnPropertyChanging (string propertyName);
Parameters

Parse(String)

Declaration
public static Newtonsoft.Json.Linq.JObject Parse (string json);
Parameters
Returns

Parse(String, JsonLoadSettings)

Declaration
public static Newtonsoft.Json.Linq.JObject Parse (string json, Newtonsoft.Json.Linq.JsonLoadSettings settings);
Parameters
Returns

Properties()

Declaration
public System.Collections.Generic.IEnumerable<Newtonsoft.Json.Linq.JProperty> Properties ();
Returns

Property(String)

Declaration
public Newtonsoft.Json.Linq.JProperty Property (string name);
Parameters
Returns

PropertyValues()

Declaration
public Newtonsoft.Json.Linq.JEnumerable<Newtonsoft.Json.Linq.JToken> PropertyValues ();
Returns

Remove(String)

Declaration
public bool Remove (string propertyName);
Parameters
Returns

TryGetValue(String, StringComparison, JToken)

Declaration
public bool TryGetValue (string propertyName, StringComparison comparison, out Newtonsoft.Json.Linq.JToken value);
Parameters
Returns

TryGetValue(String, JToken)

Declaration
public bool TryGetValue (string propertyName, out Newtonsoft.Json.Linq.JToken value);
Parameters
Returns

WriteTo(JsonWriter, JsonConverter[])

Declaration
public override void WriteTo (Newtonsoft.Json.JsonWriter writer, params Newtonsoft.Json.JsonConverter[] converters);
Parameters

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
Returns

Events

PropertyChanged

Declaration
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

PropertyChanging

Declaration
public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging;

Explicit Interface Implementations

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

Declaration
void ICollection<KeyValuePair<string,JToken>>.Add (System.Collections.Generic.KeyValuePair<string,Newtonsoft.Json.Linq.JToken> item);
Parameters

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

Declaration
void ICollection<KeyValuePair<string,JToken>>.Clear ();

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

Declaration
bool ICollection<KeyValuePair<string,JToken>>.Contains (System.Collections.Generic.KeyValuePair<string,Newtonsoft.Json.Linq.JToken> item);
Parameters
Returns

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

Declaration
void ICollection<KeyValuePair<string,JToken>>.CopyTo (System.Collections.Generic.KeyValuePair<string,Newtonsoft.Json.Linq.JToken>[] array, int arrayIndex);
Parameters

ICollection<KeyValuePair<String,JToken>>.IsReadOnly

Declaration
bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,Newtonsoft.Json.Linq.JToken>>.IsReadOnly { get; }
Returns

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

Declaration
bool ICollection<KeyValuePair<string,JToken>>.Remove (System.Collections.Generic.KeyValuePair<string,Newtonsoft.Json.Linq.JToken> item);
Parameters
Returns

IDictionary<String,JToken>.ContainsKey(String)

Declaration
bool IDictionary<string,JToken>.ContainsKey (string key);
Parameters
Returns

IDictionary<String,JToken>.Keys

Declaration
System.Collections.Generic.ICollection<string> System.Collections.Generic.IDictionary<System.String,Newtonsoft.Json.Linq.JToken>.Keys { get; }
Returns

IDictionary<String,JToken>.Values

Declaration
System.Collections.Generic.ICollection<Newtonsoft.Json.Linq.JToken> System.Collections.Generic.IDictionary<System.String,Newtonsoft.Json.Linq.JToken>.Values { get; }
Returns

ICustomTypeDescriptor.GetAttributes()

Declaration
System.ComponentModel.AttributeCollection ICustomTypeDescriptor.GetAttributes ();
Returns

ICustomTypeDescriptor.GetClassName()

Declaration
string ICustomTypeDescriptor.GetClassName ();
Returns

ICustomTypeDescriptor.GetComponentName()

Declaration
string ICustomTypeDescriptor.GetComponentName ();
Returns

ICustomTypeDescriptor.GetConverter()

Declaration
System.ComponentModel.TypeConverter ICustomTypeDescriptor.GetConverter ();
Returns

ICustomTypeDescriptor.GetDefaultEvent()

Declaration
System.ComponentModel.EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ();
Returns

ICustomTypeDescriptor.GetDefaultProperty()

Declaration
System.ComponentModel.PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ();
Returns

ICustomTypeDescriptor.GetEditor(Type)

Declaration
object ICustomTypeDescriptor.GetEditor (Type editorBaseType);
Parameters
Returns

ICustomTypeDescriptor.GetEvents()

Declaration
System.ComponentModel.EventDescriptorCollection ICustomTypeDescriptor.GetEvents ();
Returns

ICustomTypeDescriptor.GetEvents(Attribute[])

Declaration
System.ComponentModel.EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes);
Parameters
Returns

ICustomTypeDescriptor.GetProperties()

Declaration
System.ComponentModel.PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ();
Returns

ICustomTypeDescriptor.GetProperties(Attribute[])

Declaration
System.ComponentModel.PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute[] attributes);
Parameters
Returns

ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)

Declaration
object ICustomTypeDescriptor.GetPropertyOwner (System.ComponentModel.PropertyDescriptor pd);
Parameters
Returns

Extension Methods