JsonElement.Parse 메서드

정의

오버로드

Name Description
Parse(String, JsonDocumentOptions)

단일 JSON 값을 JsonElement나타내는 텍스트를 으로 구문 분석합니다.

Parse(ReadOnlySpan<Byte>, JsonDocumentOptions)

단일 JSON 값을 나타내는 UTF8로 인코딩된 텍스트를 />로 구문 분석합니다.

Parse(ReadOnlySpan<Char>, JsonDocumentOptions)

단일 JSON 값을 JsonElement나타내는 텍스트를 으로 구문 분석합니다.

Parse(String, JsonDocumentOptions)

Source:
JsonElement.Parse.cs
Source:
JsonElement.Parse.cs
Source:
JsonElement.Parse.cs

단일 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

구문 분석 중 판독기 동작을 제어하는 옵션입니다.

반품

JsonElement JSON 값의 표현입니다.

예외

jsonnull입니다.

json 는 유효한 단일 JSON 값을 나타내지 않습니다.

options 에는 지원되지 않는 옵션이 포함되어 있습니다.

적용 대상

Parse(ReadOnlySpan<Byte>, JsonDocumentOptions)

Source:
JsonElement.Parse.cs
Source:
JsonElement.Parse.cs
Source:
JsonElement.Parse.cs

단일 JSON 값을 나타내는 UTF8로 인코딩된 텍스트를 />로 구문 분석합니다.

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

구문 분석 중 판독기 동작을 제어하는 옵션입니다.

반품

JsonElement JSON 값의 표현입니다.

예외

utf8Json 는 유효한 단일 JSON 값을 나타내지 않습니다.

options 에는 지원되지 않는 옵션이 포함되어 있습니다.

적용 대상

Parse(ReadOnlySpan<Char>, JsonDocumentOptions)

Source:
JsonElement.Parse.cs
Source:
JsonElement.Parse.cs
Source:
JsonElement.Parse.cs

단일 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

구문 분석 중 판독기 동작을 제어하는 옵션입니다.

반품

JsonElement JSON 값의 표현입니다.

예외

json 는 유효한 단일 JSON 값을 나타내지 않습니다.

options 에는 지원되지 않는 옵션이 포함되어 있습니다.

적용 대상