<PackageReference Include="Newtonsoft.Json" Version="10.0.2" />

JValue

Represents a value in JSON (string, integer, date, etc).
public object Value { get; set; }

Gets or sets the underlying token value.

public JValue(JValue other)

Initializes a new instance of the JValue class from another JValue object.

public JValue(long value)

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

public JValue(decimal value)

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

public JValue(char value)

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

public JValue(ulong value)

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

public JValue(double value)

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

public JValue(float value)

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

public JValue(DateTime value)

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

public JValue(DateTimeOffset value)

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

public JValue(bool value)

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

public JValue(string value)

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

public JValue(Guid value)

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

public JValue(Uri value)

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

public JValue(TimeSpan value)

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

public JValue(object value)

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

public static JValue CreateComment(string value)

Creates a JValue comment with the given value.

public static JValue CreateNull()

Creates a JValue null value.

public static JValue CreateString(string value)

Creates a JValue string with the given value.

public static JValue CreateUndefined()

Creates a JValue undefined value.

public int CompareTo(JValue obj)

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.

public bool Equals(JValue other)

Indicates whether the current object is equal to another object of the same type.

public string ToString(string format)

Returns a String that represents this instance.

public string ToString(IFormatProvider formatProvider)

Returns a String that represents this instance.

public string ToString(string format, IFormatProvider formatProvider)

Returns a String that represents this instance.