<PackageReference Include="System.Text.Json" Version="6.0.9" />

JsonValue

public abstract class JsonValue : JsonNode
Represents a mutable JSON value.
public static JsonValue Create(bool value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(bool? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(byte value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(byte? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(char value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(char? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(DateTime value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(DateTime? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(DateTimeOffset value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(DateTimeOffset? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(decimal value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(decimal? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(double value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(double? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(Guid value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(Guid? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(short value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(short? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(int value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(int? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(long value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(long? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(sbyte value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(sbyte? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(float value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(float? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(string value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(ushort value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(ushort? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(uint value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(uint? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(ulong value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(ulong? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(JsonElement value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create(JsonElement? value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create<T>(T value, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public static JsonValue Create<T>(T value, JsonTypeInfo<T> jsonTypeInfo, JsonNodeOptions? options = default)

Initializes a new instance of the JsonValue class that contains the specified value.

public abstract bool TryGetValue<T>(out T value)

Tries to obtain the current JSON value and returns a value that indicates whether the operation succeeded.