<PackageReference Include="newtonsoft.json" Version="4.0.1" />

JValue

public class JValue : JToken, IEquatable<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(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(DateTime 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(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 CreateString(string value)

Creates a JValue string with the given value.

public bool Equals(JValue other)

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