JValue Class

Json.NET

Json.NET - Quick Starts & API Documentation JValue Class
NamespacesNewtonsoft.Json.LinqJValue
Represents a value in JSON (string, integer, date, etc).
Declaration Syntax
C# Visual Basic Visual C++
public class JValue : JToken, IEquatable<JValue>, 
	IFormattable, IComparable, IComparable<JValue>
Public Class JValue _
	Inherits JToken _
	Implements IEquatable(Of JValue), IFormattable,  _
	IComparable, IComparable(Of JValue)
public ref class JValue : public JToken, 
	IEquatable<JValue^>, IFormattable, IComparable, IComparable<JValue^>
Members
All Members Constructors Methods Properties



Icon Member Description
JValue(JValue)
Initializes a new instance of the JValue class from another JValue object.

JValue(Int64)
Initializes a new instance of the JValue class with the given value.

JValue(UInt64)
Initializes a new instance of the JValue class with the given value.

JValue(Double)
Initializes a new instance of the JValue class with the given value.

JValue(DateTime)
Initializes a new instance of the JValue class with the given value.

JValue(Boolean)
Initializes a new instance of the JValue class with the given value.

JValue(String)
Initializes a new instance of the JValue class with the given value.

JValue(Guid)
Initializes a new instance of the JValue class with the given value.

JValue(Uri)
Initializes a new instance of the JValue class with the given value.

JValue(TimeSpan)
Initializes a new instance of the JValue class with the given value.

JValue(Object)
Initializes a new instance of the JValue class with the given value.

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.)
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 JToken.)
CompareTo(JValue)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

CreateComment(String)
Creates a JValue comment with the given value.

CreateReader()()()()
Creates an JsonReader for this token.
(Inherited from JToken.)
CreateString(String)
Creates a JValue string with the given value.

DeepClone()()()()
Creates a new instance of the JToken. All child tokens are recursively cloned.
(Inherited from JToken.)
Equals(JValue)
Indicates whether the current object is equal to another object of the same type.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Overrides Object.Equals(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 JToken.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Overrides Object.GetHashCode()()()().)
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.
(Overrides JToken.HasValues.)
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.
(Inherited from JToken.)
Last
Get the last child token of this token.
(Inherited from JToken.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Next
Gets the next sibling token of this node.
(Inherited from JToken.)
Parent
Gets or sets the parent.
(Inherited from JToken.)
Previous
Gets the previous sibling token of this node.
(Inherited from JToken.)
Remove()()()()
Removes this token from its parent.
(Inherited from JToken.)
Replace(JToken)
Replaces this token with the specified token.
(Inherited from JToken.)
Root
Gets the root JToken of this JToken.
(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 a String that represents this instance.
(Overrides JToken.ToString()()()().)
ToString(String)
Returns a String that represents this instance.

ToString(IFormatProvider)
Returns a String that represents this instance.

ToString(String, IFormatProvider)
Returns a String that represents this instance.

ToString(Formatting, array<JsonConverter>[]()[][])
Returns the JSON for this token using the given formatting and converters.
(Inherited from JToken.)
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
Gets or sets the underlying token value.

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 JToken.)
WriteTo(JsonWriter, array<JsonConverter>[]()[][])
Writes this token to a JsonWriter.
(Overrides JToken.WriteTo(JsonWriter, array<JsonConverter>[]()[][]).)
Inheritance Hierarchy
Object
JToken
  JValue
    JRaw

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.6.14930)