JsonNode.ToJsonString(JsonSerializerOptions) Methode

Definition

Konvertiert die aktuelle instance 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 des aktuellen instance.

Hinweise

Parse führt bei dieser Methode aufgrund ihres Verhaltens für den JSON-NULL-Wert keinen Roundtrip durch.

Gilt für: