JsonElement.Parse Methode

Definition

Überlädt

Name Beschreibung
Parse(String, JsonDocumentOptions)

Analysiert Text, der einen einzelnen JSON-Wert in einem JsonElement.

Parse(ReadOnlySpan<Byte>, JsonDocumentOptions)

Analysiert UTF8-codierten Text, der einen einzelnen JSON-Wert in einem JsonElement.

Parse(ReadOnlySpan<Char>, JsonDocumentOptions)

Analysiert Text, der einen einzelnen JSON-Wert in einem JsonElement.

Parse(String, JsonDocumentOptions)

Quelle:
JsonElement.Parse.cs
Quelle:
JsonElement.Parse.cs
Quelle:
JsonElement.Parse.cs

Analysiert Text, der einen einzelnen JSON-Wert in einem JsonElement.

public static System.Text.Json.JsonElement Parse(string json, System.Text.Json.JsonDocumentOptions options = default);
static member Parse : string * System.Text.Json.JsonDocumentOptions -> System.Text.Json.JsonElement
Public Shared Function Parse (json As String, Optional options As JsonDocumentOptions = Nothing) As JsonElement

Parameter

json
String

Der zu analysierende JSON-Text.

options
JsonDocumentOptions

Optionen zum Steuern des Leseverhaltens während der Analyse.

Gibt zurück

Eine JsonElement Darstellung des JSON-Werts.

Ausnahmen

json ist null.

json stellt keinen gültigen einzelnen JSON-Wert dar.

options enthält nicht unterstützte Optionen.

Gilt für:

Parse(ReadOnlySpan<Byte>, JsonDocumentOptions)

Quelle:
JsonElement.Parse.cs
Quelle:
JsonElement.Parse.cs
Quelle:
JsonElement.Parse.cs

Analysiert UTF8-codierten Text, der einen einzelnen JSON-Wert in einem JsonElement.

public static System.Text.Json.JsonElement Parse(ReadOnlySpan<byte> utf8Json, System.Text.Json.JsonDocumentOptions options = default);
static member Parse : ReadOnlySpan<byte> * System.Text.Json.JsonDocumentOptions -> System.Text.Json.JsonElement
Public Shared Function Parse (utf8Json As ReadOnlySpan(Of Byte), Optional options As JsonDocumentOptions = Nothing) As JsonElement

Parameter

utf8Json
ReadOnlySpan<Byte>

Der zu analysierende JSON-Text.

options
JsonDocumentOptions

Optionen zum Steuern des Leseverhaltens während der Analyse.

Gibt zurück

Eine JsonElement Darstellung des JSON-Werts.

Ausnahmen

utf8Json stellt keinen gültigen einzelnen JSON-Wert dar.

options enthält nicht unterstützte Optionen.

Gilt für:

Parse(ReadOnlySpan<Char>, JsonDocumentOptions)

Quelle:
JsonElement.Parse.cs
Quelle:
JsonElement.Parse.cs
Quelle:
JsonElement.Parse.cs

Analysiert Text, der einen einzelnen JSON-Wert in einem JsonElement.

public static System.Text.Json.JsonElement Parse(ReadOnlySpan<char> json, System.Text.Json.JsonDocumentOptions options = default);
static member Parse : ReadOnlySpan<char> * System.Text.Json.JsonDocumentOptions -> System.Text.Json.JsonElement
Public Shared Function Parse (json As ReadOnlySpan(Of Char), Optional options As JsonDocumentOptions = Nothing) As JsonElement

Parameter

json
ReadOnlySpan<Char>

Der zu analysierende JSON-Text.

options
JsonDocumentOptions

Optionen zum Steuern des Leseverhaltens während der Analyse.

Gibt zurück

Eine JsonElement Darstellung des JSON-Werts.

Ausnahmen

json stellt keinen gültigen einzelnen JSON-Wert dar.

options enthält nicht unterstützte Optionen.

Gilt für: