Represents a JSON object.
Namespace: Newtonsoft.Json.LinqAssembly: Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 4.5.0.0 (4.5.11.15729)
Syntax
| C# |
|---|
public class JObject : JContainer, IDictionary<string, JToken>, ICollection<KeyValuePair<string, JToken>>, IEnumerable<KeyValuePair<string, JToken>>, IEnumerable, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertyChanging |
| Visual Basic |
|---|
Public Class JObject _ Inherits JContainer _ Implements IDictionary(Of String, JToken), _ ICollection(Of KeyValuePair(Of String, JToken)), IEnumerable(Of KeyValuePair(Of String, JToken)), _ IEnumerable, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertyChanging |
| Visual C++ |
|---|
public ref class JObject : public JContainer, IDictionary<String^, JToken^>, ICollection<KeyValuePair<String^, JToken^>>, IEnumerable<KeyValuePair<String^, JToken^>>, IEnumerable, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertyChanging |
Examples
1string json = @"{ 2 CPU: 'Intel', 3 Drives: [ 4 'DVD read/writer', 5 '500 gigabyte hard drive' 6 ] 7}"; 8 9JObject o = JObject.Parse(json);
Inheritance Hierarchy
System..::..Object
Newtonsoft.Json.Linq..::..JToken
Newtonsoft.Json.Linq..::..JContainer
Newtonsoft.Json.Linq..::..JObject
Newtonsoft.Json.Linq..::..JToken
Newtonsoft.Json.Linq..::..JContainer
Newtonsoft.Json.Linq..::..JObject