JsonElement.Parse メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| Parse(String, JsonDocumentOptions) |
1 つの JSON 値を表すテキストを JsonElementに解析します。 |
| Parse(ReadOnlySpan<Byte>, JsonDocumentOptions) |
1 つの JSON 値を表す UTF8 でエンコードされたテキストを JsonElementに解析します。 |
| Parse(ReadOnlySpan<Char>, JsonDocumentOptions) |
1 つの JSON 値を表すテキストを JsonElementに解析します。 |
Parse(String, JsonDocumentOptions)
1 つの JSON 値を表すテキストを 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
パラメーター
- json
- String
解析する JSON テキスト。
- options
- JsonDocumentOptions
解析中にリーダーの動作を制御するオプション。
返品
JSON 値の JsonElement 表現。
例外
json は nullです。
json は有効な単一の JSON 値を表していません。
options には、サポートされていないオプションが含まれています。
適用対象
Parse(ReadOnlySpan<Byte>, JsonDocumentOptions)
1 つの JSON 値を表す UTF8 でエンコードされたテキストを 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
パラメーター
- utf8Json
- ReadOnlySpan<Byte>
解析する JSON テキスト。
- options
- JsonDocumentOptions
解析中にリーダーの動作を制御するオプション。
返品
JSON 値の JsonElement 表現。
例外
utf8Json は有効な単一の JSON 値を表していません。
options には、サポートされていないオプションが含まれています。
適用対象
Parse(ReadOnlySpan<Char>, JsonDocumentOptions)
1 つの JSON 値を表すテキストを 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
パラメーター
- json
- ReadOnlySpan<Char>
解析する JSON テキスト。
- options
- JsonDocumentOptions
解析中にリーダーの動作を制御するオプション。
返品
JSON 値の JsonElement 表現。
例外
json は有効な単一の JSON 値を表していません。
options には、サポートされていないオプションが含まれています。