Json.NET - Quick Starts & API Documentation
JObject Class
Namespaces ► Newtonsoft.Json.Linq ► JObject
Represents a JSON object.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class JObject : JContainer, IDictionary<string, JToken>, ICollection<KeyValuePair<string, JToken>>, IEnumerable<KeyValuePair<string, JToken>>, IEnumerable, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertyChanging
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
public ref class JObject : public JContainer, IDictionary<String^, JToken^>, ICollection<KeyValuePair<String^, JToken^>>, IEnumerable<KeyValuePair<String^, JToken^>>, IEnumerable, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertyChanging
Members
All Members | Constructors | Methods | Properties | Events | |
|
|
|
Icon | Member | Description |
---|---|---|
JObject()()()() |
Initializes a new instance of the JObject class.
|
|
JObject(JObject) |
Initializes a new instance of the JObject class from another JObject object.
|
|
JObject(array<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.
|
|
Add(String, JToken) |
Adds the specified property name.
|
|
Add(Object) |
Adds the specified content as children of this JToken.
(Inherited from JContainer.) |
|
AddAfterSelf(Object) |
Adds the specified content immediately after this token.
(Inherited from JToken.) |
|
AddBeforeSelf(Object) |
Adds the specified content immediately before this token.
(Inherited from JToken.) |
|
AddFirst(Object) |
Adds the specified content as the first children of this JToken.
(Inherited from JContainer.) |
|
AddingNew |
Occurs before an item is added to the collection.
(Inherited from JContainer.) |
|
AfterSelf()()()() |
Returns a collection of the sibling tokens after this token, in document order.
(Inherited from JToken.) |
|
Ancestors()()()() |
Returns a collection of the ancestor tokens of this token.
(Inherited from JToken.) |
|
BeforeSelf()()()() |
Returns a collection of the sibling tokens before this token, in document order.
(Inherited from JToken.) |
|
Children()()()() |
Returns a collection of the child tokens of this token, in document order.
(Inherited from JContainer.) |
|
ChildrenTokens |
Gets the container's children tokens.
(Overrides JContainer.ChildrenTokens.) |
|
CollectionChanged |
Occurs when the items list of the collection has changed, or the collection is reset.
(Inherited from JContainer.) |
|
Count |
Gets the count of child JSON tokens.
(Inherited from JContainer.) |
|
CreateReader()()()() |
Creates an JsonReader for this token.
(Inherited from JToken.) |
|
CreateWriter()()()() |
Creates an JsonWriter that can be used to add tokens to the JToken.
(Inherited from JContainer.) |
|
DeepClone()()()() |
Creates a new instance of the JToken. All child tokens are recursively cloned.
(Inherited from JToken.) |
|
Descendants()()()() |
Returns a collection of the descendant tokens for this token in document order.
(Inherited from JContainer.) |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
|
First |
Get the first child token of this token.
(Inherited from JContainer.) |
|
FromObject(Object) |
Creates a JObject from an object.
|
|
FromObject(Object, JsonSerializer) |
Creates a JArray from an object.
|
|
GetEnumerator()()()() |
Returns an enumerator that iterates through the collection.
|
|
GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetMetaObject(Expression) |
Returns the DynamicMetaObject responsible for binding operations performed on this object.
(Overrides JToken.GetMetaObject(Expression).) |
|
GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) |
|
HasValues |
Gets a value indicating whether this token has childen tokens.
(Inherited from JContainer.) |
|
IsValid(JToken, JsonSchema) |
Determines whether the JToken is valid.
(Inherited from Extensions.) |
|
IsValid(JToken, JsonSchema, IList<(Of <<'(String>)>>)%) |
Determines whether the JToken is valid.
(Inherited from Extensions.) |
|
Item[([( Object])]) |
Gets the JToken with the specified key.
(Overrides JToken.Item[([( Object])]) .) |
|
Item[([( String])]) |
Gets or sets the JToken with the specified property name.
|
|
Last |
Get the last child token of this token.
(Inherited from JContainer.) |
|
ListChanged |
Occurs when the list changes or an item in the list changes.
(Inherited from JContainer.) |
|
Load(JsonReader) |
Loads an JObject from a JsonReader.
|
|
MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
Next |
Gets the next sibling token of this node.
(Inherited from JToken.) |
|
OnAddingNew(AddingNewEventArgs) |
Raises the AddingNew event.
(Inherited from JContainer.) |
|
OnCollectionChanged(NotifyCollectionChangedEventArgs) |
Raises the CollectionChanged event.
(Inherited from JContainer.) |
|
OnListChanged(ListChangedEventArgs) |
Raises the ListChanged event.
(Inherited from JContainer.) |
|
OnPropertyChanged(String) |
Raises the PropertyChanged event with the provided arguments.
|
|
OnPropertyChanging(String) |
Raises the PropertyChanging event with the provided arguments.
|
|
Parent |
Gets or sets the parent.
(Inherited from JToken.) |
|
Parse(String) |
Load a JObject from a string that contains JSON.
|
|
Previous |
Gets the previous sibling token of this node.
(Inherited from JToken.) |
|
Properties()()()() |
Gets an IEnumerable<(Of <(<'T>)>)> of this object's properties.
|
|
Property(String) |
Gets a JProperty the specified name.
|
|
PropertyChanged |
Occurs when a property value changes.
|
|
PropertyChanging |
Occurs when a property value is changing.
|
|
PropertyValues()()()() |
Gets an JEnumerable<(Of <(<'T>)>)> of this object's property values.
|
|
Remove(String) |
Removes the property with the specified name.
|
|
Remove()()()() |
Removes this token from its parent.
(Inherited from JToken.) |
|
RemoveAll()()()() |
Removes the child nodes from this token.
(Inherited from JContainer.) |
|
Replace(JToken) |
Replaces this token with the specified token.
(Inherited from JToken.) |
|
ReplaceAll(Object) |
Replaces the children nodes of this token with the specified content.
(Inherited from JContainer.) |
|
Root | (Inherited from JToken.) |
|
SelectToken(String) |
Selects the token that matches the object path.
(Inherited from JToken.) |
|
SelectToken(String, Boolean) |
Selects the token that matches the object path.
(Inherited from JToken.) |
|
ToObject<(Of <<'(T>)>>)()()()() |
Creates the specified .NET type from the JToken.
(Inherited from JToken.) |
|
ToObject<(Of <<'(T>)>>)(JsonSerializer) |
Creates the specified .NET type from the JToken using the specified JsonSerializer.
(Inherited from JToken.) |
|
ToString()()()() |
Returns the indented JSON for this token.
(Inherited from JToken.) |
|
ToString(Formatting, array<JsonConverter>[]()[][]) |
Returns the JSON for this token using the given formatting and converters.
(Inherited from JToken.) |
|
TryGetValue(String, JToken%) |
Tries the get value.
|
|
Type |
Gets the node type for this JToken.
(Overrides JToken.Type.) |
|
Validate(JToken, JsonSchema) |
Validates the specified JToken.
(Inherited from Extensions.) |
|
Validate(JToken, JsonSchema, ValidationEventHandler) |
Validates the specified JToken.
(Inherited from Extensions.) |
|
Value<(Of <<'(T>)>>)(Object) |
Gets the JToken with the specified key converted to the specified type.
(Inherited from JToken.) |
|
Values<(Of <<'(T>)>>)()()()() |
Returns a collection of the child values of this token, in document order.
(Inherited from JContainer.) |
|
WriteTo(JsonWriter, array<JsonConverter>[]()[][]) |
Writes this token to a JsonWriter.
(Overrides JToken.WriteTo(JsonWriter, array<JsonConverter>[]()[][]).) |
Inheritance Hierarchy
Object | |||
JToken | |||
JContainer | |||
JObject |