<PackageReference Include="Azure.Core" Version="1.47.1" />

MutableJsonDocument

A mutable representation of a JSON value.

Gets the root element of this JSON document.

public static MutableJsonDocument Parse(ReadOnlyMemory<byte> utf8Json, JsonSerializerOptions serializerOptions = null)

Parses a UTF-8 encoded string representing a single JSON value into a MutableJsonDocument.

public static MutableJsonDocument Parse(ref Utf8JsonReader reader, JsonSerializerOptions serializerOptions = null)

Parses JSON into a MutableJsonDocument.

public static MutableJsonDocument Parse(BinaryData utf8Json, JsonSerializerOptions serializerOptions = null)

Parses a UTF-8 encoded string representing a single JSON value into a MutableJsonDocument.

public static MutableJsonDocument Parse(string json, JsonSerializerOptions serializerOptions = null)

Parses test representing a single JSON value into a MutableJsonDocument.

public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void WriteTo(Stream stream, string format = null)

Writes the document to the provided stream as a JSON value.

public void WriteTo(Utf8JsonWriter writer)

Writes the document to the provided stream as a JSON value.