JsonNode.ToJsonString(JsonSerializerOptions) Methode

Definition

Konvertiert die aktuelle Instanz in eine Zeichenfolge im JSON-Format.

public string ToJsonString(System.Text.Json.JsonSerializerOptions? options = default);
member this.ToJsonString : System.Text.Json.JsonSerializerOptions -> string
Public Function ToJsonString (Optional options As JsonSerializerOptions = Nothing) As String

Parameter

options
JsonSerializerOptions

Optionen zum Steuern des Serialisierungsverhaltens.

Gibt zurück

Die JSON-Darstellung der aktuellen Instanz.

Hinweise

Parse roundtrip with this method, because of its behavior on the JSON null value.

Gilt für: