JsonSerializer 클래스

정의

개체 또는 값 형식을 JSON으로 직렬화하고 JSON을 개체 또는 값 형식으로 역직렬화하는 기능을 제공합니다.

public ref class JsonSerializer abstract sealed
public static class JsonSerializer
type JsonSerializer = class
Public Module JsonSerializer
Public Class JsonSerializer
상속
JsonSerializer

설명

자세한 내용은 JSON을 직렬화 및 역직렬화하는 방법을 참조하세요.

속성

Name Description
IsReflectionEnabledByDefault

구성 JsonSerializerOptions 되지 않은 인스턴스가 리플렉션 기반 DefaultJsonTypeInfoResolver인스턴스로 기본 설정되어야 하는지 여부를 나타내는 값을 가져옵니다.

메서드

Name Description
Deserialize(JsonDocument, JsonTypeInfo)

JsonDocument 나타내는 단일 JSON 값을 에 지정된 jsonTypeInfo인스턴스로 변환합니다.

Deserialize(JsonDocument, Type, JsonSerializerContext)

JsonDocument 나타내는 JSON 값을 returnType.로 변환합니다.

Deserialize(JsonDocument, Type, JsonSerializerOptions)

JsonDocument 나타내는 JSON 값을 returnType.로 변환합니다.

Deserialize(JsonElement, JsonTypeInfo)

JsonElement 나타내는 단일 JSON 값을 에 지정된 jsonTypeInfo인스턴스로 변환합니다.

Deserialize(JsonElement, Type, JsonSerializerContext)

JsonElement 나타내는 JSON 값을 returnType.로 변환합니다.

Deserialize(JsonElement, Type, JsonSerializerOptions)

JsonElement 나타내는 JSON 값을 returnType.로 변환합니다.

Deserialize(JsonNode, JsonTypeInfo)

JsonNode 나타내는 단일 JSON 값을 에 지정된 jsonTypeInfo인스턴스로 변환합니다.

Deserialize(JsonNode, Type, JsonSerializerContext)

JsonNode 나타내는 JSON 값을 returnType.로 변환합니다.

Deserialize(JsonNode, Type, JsonSerializerOptions)

JsonNode 나타내는 JSON 값을 returnType.로 변환합니다.

Deserialize(ReadOnlySpan<Byte>, JsonTypeInfo)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 에 지정된 jsonTypeInfo인스턴스로 구문 분석합니다.

Deserialize(ReadOnlySpan<Byte>, Type, JsonSerializerContext)

단일 JSON 값을 returnType나타내는 UTF-8로 인코딩된 텍스트를 구문 분석합니다.

Deserialize(ReadOnlySpan<Byte>, Type, JsonSerializerOptions)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 지정된 형식의 인스턴스로 구문 분석합니다.

Deserialize(ReadOnlySpan<Char>, JsonTypeInfo)

단일 JSON 값을 나타내는 텍스트를 에 지정된 jsonTypeInfo인스턴스로 구문 분석합니다.

Deserialize(ReadOnlySpan<Char>, Type, JsonSerializerContext)

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

Deserialize(ReadOnlySpan<Char>, Type, JsonSerializerOptions)

단일 JSON 값을 나타내는 텍스트를 지정된 형식의 인스턴스로 구문 분석합니다.

Deserialize(Stream, JsonTypeInfo)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 jsonTypeInfo텍스트를 지정된 인스턴스로 읽습니다. 스트림은 완료될 때 읽습니다.

Deserialize(Stream, Type, JsonSerializerContext)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 읽습니다 returnType. 스트림은 완료될 때 읽습니다.

Deserialize(Stream, Type, JsonSerializerOptions)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 읽습니다 returnType. 스트림은 완료될 때 읽습니다.

Deserialize(String, JsonTypeInfo)

단일 JSON 값을 나타내는 텍스트를 에 지정된 jsonTypeInfo인스턴스로 구문 분석합니다.

Deserialize(String, Type, JsonSerializerContext)

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

Deserialize(String, Type, JsonSerializerOptions)

단일 JSON 값을 나타내는 텍스트를 지정된 형식의 인스턴스로 구문 분석합니다.

Deserialize(Utf8JsonReader, JsonTypeInfo)

제공된 판독기에서 지정된 인스턴스 jsonTypeInfo로 JSON 값(개체 또는 배열 포함)을 읽습니다.

Deserialize(Utf8JsonReader, Type, JsonSerializerContext)

제공된 판독기에서 JSON 값(개체 또는 배열 포함)을 읽습니다 returnType.

Deserialize(Utf8JsonReader, Type, JsonSerializerOptions)

제공된 판독기에서 하나의 JSON 값(개체 또는 배열 포함)을 읽고 지정된 형식의 인스턴스로 변환합니다.

Deserialize<TValue>(JsonDocument, JsonSerializerOptions)

JsonDocument 나타내는 JSON 값을 TValue.로 변환합니다.

Deserialize<TValue>(JsonDocument, JsonTypeInfo<TValue>)

JsonDocument 나타내는 JSON 값을 TValue.로 변환합니다.

Deserialize<TValue>(JsonElement, JsonSerializerOptions)

JsonElement 나타내는 JSON 값을 TValue.로 변환합니다.

Deserialize<TValue>(JsonElement, JsonTypeInfo<TValue>)

JsonElement 나타내는 JSON 값을 TValue.로 변환합니다.

Deserialize<TValue>(JsonNode, JsonSerializerOptions)

JsonNode 나타내는 JSON 값을 TValue.로 변환합니다.

Deserialize<TValue>(JsonNode, JsonTypeInfo<TValue>)

JsonNode 나타내는 JSON 값을 TValue.로 변환합니다.

Deserialize<TValue>(ReadOnlySpan<Byte>, JsonSerializerOptions)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 제네릭 형식 매개 변수로 지정된 형식의 인스턴스로 구문 분석합니다.

Deserialize<TValue>(ReadOnlySpan<Byte>, JsonTypeInfo<TValue>)

단일 JSON 값을 TValue나타내는 UTF-8로 인코딩된 텍스트를 구문 분석합니다.

Deserialize<TValue>(ReadOnlySpan<Char>, JsonSerializerOptions)

단일 JSON 값을 나타내는 텍스트를 제네릭 형식 매개 변수로 지정된 형식의 인스턴스로 구문 분석합니다.

Deserialize<TValue>(ReadOnlySpan<Char>, JsonTypeInfo<TValue>)

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

Deserialize<TValue>(Stream, JsonSerializerOptions)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 읽습니다 TValue. 스트림은 완료될 때 읽습니다.

Deserialize<TValue>(Stream, JsonTypeInfo<TValue>)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 읽습니다 TValue. 스트림은 완료될 때 읽습니다.

Deserialize<TValue>(String, JsonSerializerOptions)

단일 JSON 값을 나타내는 텍스트를 제네릭 형식 매개 변수로 지정된 형식의 인스턴스로 구문 분석합니다.

Deserialize<TValue>(String, JsonTypeInfo<TValue>)

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

Deserialize<TValue>(Utf8JsonReader, JsonSerializerOptions)

제공된 판독기에서 제네릭 형식 매개 변수로 지정된 형식의 인스턴스로 하나의 JSON 값(개체 또는 배열 포함)을 읽습니다.

Deserialize<TValue>(Utf8JsonReader, JsonTypeInfo<TValue>)

제공된 판독기에서 JSON 값(개체 또는 배열 포함)을 읽습니다 TValue.

DeserializeAsync(PipeReader, JsonTypeInfo, CancellationToken)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 jsonTypeInfo텍스트를 지정된 인스턴스로 읽습니다.

PipeReader는 완료될 때 읽습니다.

DeserializeAsync(PipeReader, Type, JsonSerializerContext, CancellationToken)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 읽습니다 returnType.

PipeReader는 완료될 때 읽습니다.

DeserializeAsync(PipeReader, Type, JsonSerializerOptions, CancellationToken)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 읽습니다 returnType.

PipeReader는 완료될 때 읽습니다.

DeserializeAsync(Stream, JsonTypeInfo, CancellationToken)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 jsonTypeInfo텍스트를 지정된 인스턴스로 읽습니다. 스트림은 완료될 때 읽습니다.

DeserializeAsync(Stream, Type, JsonSerializerContext, CancellationToken)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 읽습니다 returnType. 스트림은 완료될 때 읽습니다.

DeserializeAsync(Stream, Type, JsonSerializerOptions, CancellationToken)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 지정된 형식의 인스턴스로 비동기적으로 읽습니다. 스트림은 완료될 때 읽습니다.

DeserializeAsync<TValue>(PipeReader, JsonSerializerOptions, CancellationToken)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 읽습니다 TValue.

PipeReader는 완료될 때 읽습니다.

DeserializeAsync<TValue>(PipeReader, JsonTypeInfo<TValue>, CancellationToken)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 읽습니다 TValue.

PipeReader는 완료될 때 읽습니다.

DeserializeAsync<TValue>(Stream, JsonSerializerOptions, CancellationToken)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 제네릭 형식 매개 변수로 지정된 형식의 인스턴스로 비동기적으로 읽습니다. 스트림은 완료될 때 읽습니다.

DeserializeAsync<TValue>(Stream, JsonTypeInfo<TValue>, CancellationToken)

단일 JSON 값을 나타내는 UTF-8로 인코딩된 텍스트를 읽습니다 TValue. 스트림은 완료될 때 읽습니다.

DeserializeAsyncEnumerable<TValue>(PipeReader, Boolean, JsonSerializerOptions, CancellationToken)

UTF-8로 인코딩된 텍스트를 스트리밍 방식으로 JSON 값 시퀀스를 역직렬화하는 데 사용할 수 있는 텍스트로 IAsyncEnumerable<T> 래핑합니다.

DeserializeAsyncEnumerable<TValue>(PipeReader, JsonSerializerOptions, CancellationToken)

UTF-8로 인코딩된 텍스트를 스트리밍 방식으로 루트 수준 JSON 배열을 역직렬화하는 데 사용할 수 있는 텍스트로 IAsyncEnumerable<T> 래핑합니다.

DeserializeAsyncEnumerable<TValue>(PipeReader, JsonTypeInfo<TValue>, Boolean, CancellationToken)

UTF-8로 인코딩된 텍스트를 스트리밍 방식으로 JSON 값 시퀀스를 역직렬화하는 데 사용할 수 있는 텍스트로 IAsyncEnumerable<T> 래핑합니다.

DeserializeAsyncEnumerable<TValue>(PipeReader, JsonTypeInfo<TValue>, CancellationToken)

UTF-8로 인코딩된 텍스트를 스트리밍 방식으로 루트 수준 JSON 배열을 역직렬화하는 데 사용할 수 있는 텍스트로 IAsyncEnumerable<T> 래핑합니다.

DeserializeAsyncEnumerable<TValue>(Stream, Boolean, JsonSerializerOptions, CancellationToken)

UTF-8로 인코딩된 텍스트를 스트리밍 방식으로 JSON 값 시퀀스를 역직렬화하는 데 사용할 수 있는 텍스트로 IAsyncEnumerable<T> 래핑합니다.

DeserializeAsyncEnumerable<TValue>(Stream, JsonSerializerOptions, CancellationToken)

UTF-8로 인코딩된 텍스트를 스트리밍 방식으로 루트 수준 JSON 배열을 역직렬화하는 데 사용할 수 있는 텍스트로 IAsyncEnumerable<T> 래핑합니다.

DeserializeAsyncEnumerable<TValue>(Stream, JsonTypeInfo<TValue>, Boolean, CancellationToken)

UTF-8로 인코딩된 텍스트를 스트리밍 방식으로 JSON 값 시퀀스를 역직렬화하는 데 사용할 수 있는 텍스트로 IAsyncEnumerable<T> 래핑합니다.

DeserializeAsyncEnumerable<TValue>(Stream, JsonTypeInfo<TValue>, CancellationToken)

UTF-8로 인코딩된 텍스트를 스트리밍 방식으로 루트 수준 JSON 배열을 역직렬화하는 데 사용할 수 있는 텍스트로 IAsyncEnumerable<T> 래핑합니다.

Serialize(Object, JsonTypeInfo)

제공된 값을 으로 String변환합니다.

Serialize(Object, Type, JsonSerializerContext)

제공된 값을 으로 String변환합니다.

Serialize(Object, Type, JsonSerializerOptions)

지정된 형식의 값을 JSON 문자열로 변환합니다.

Serialize(Stream, Object, JsonTypeInfo)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 Stream씁니다.

Serialize(Stream, Object, Type, JsonSerializerContext)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 Stream씁니다.

Serialize(Stream, Object, Type, JsonSerializerOptions)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 Stream씁니다.

Serialize(Utf8JsonWriter, Object, JsonTypeInfo)

제공된 작성기에 하나의 JSON 값(개체 또는 배열 포함)을 씁니다.

Serialize(Utf8JsonWriter, Object, Type, JsonSerializerContext)

제공된 작성기에 하나의 JSON 값(개체 또는 배열 포함)을 씁니다.

Serialize(Utf8JsonWriter, Object, Type, JsonSerializerOptions)

지정된 형식의 JSON 표현을 제공된 작성기에 씁니다.

Serialize<TValue>(Stream, TValue, JsonSerializerOptions)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 Stream씁니다.

Serialize<TValue>(Stream, TValue, JsonTypeInfo<TValue>)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 Stream씁니다.

Serialize<TValue>(TValue, JsonSerializerOptions)

제네릭 형식 매개 변수로 지정된 형식의 값을 JSON 문자열로 변환합니다.

Serialize<TValue>(TValue, JsonTypeInfo<TValue>)

제공된 값을 으로 String변환합니다.

Serialize<TValue>(Utf8JsonWriter, TValue, JsonSerializerOptions)

제네릭 형식 매개 변수로 지정된 형식의 JSON 표현을 제공된 작성기에 씁니다.

Serialize<TValue>(Utf8JsonWriter, TValue, JsonTypeInfo<TValue>)

제공된 작성기에 하나의 JSON 값(개체 또는 배열 포함)을 씁니다.

SerializeAsync(PipeWriter, Object, JsonTypeInfo, CancellationToken)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 PipeWriter씁니다.

SerializeAsync(PipeWriter, Object, Type, JsonSerializerContext, CancellationToken)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 PipeWriter씁니다.

SerializeAsync(PipeWriter, Object, Type, JsonSerializerOptions, CancellationToken)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 PipeWriter씁니다.

SerializeAsync(Stream, Object, JsonTypeInfo, CancellationToken)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 을 씁니다 Stream.

SerializeAsync(Stream, Object, Type, JsonSerializerContext, CancellationToken)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 Stream씁니다.

SerializeAsync(Stream, Object, Type, JsonSerializerOptions, CancellationToken)

지정된 형식의 값을 UTF-8로 인코딩된 JSON 텍스트로 비동기적으로 변환하고 지정된 스트림에 씁니다.

SerializeAsync<TValue>(PipeWriter, TValue, JsonSerializerOptions, CancellationToken)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 PipeWriter씁니다.

SerializeAsync<TValue>(PipeWriter, TValue, JsonTypeInfo<TValue>, CancellationToken)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 PipeWriter씁니다.

SerializeAsync<TValue>(Stream, TValue, JsonSerializerOptions, CancellationToken)

제네릭 형식 매개 변수로 지정된 형식의 값을 UTF-8로 인코딩된 JSON 텍스트로 비동기적으로 변환하고 스트림에 씁니다.

SerializeAsync<TValue>(Stream, TValue, JsonTypeInfo<TValue>, CancellationToken)

제공된 값을 UTF-8로 인코딩된 JSON 텍스트로 변환하고 해당 텍스트에 Stream씁니다.

SerializeToDocument(Object, JsonTypeInfo)

제공된 값을 으로 JsonDocument변환합니다.

SerializeToDocument(Object, Type, JsonSerializerContext)

제공된 값을 으로 JsonDocument변환합니다.

SerializeToDocument(Object, Type, JsonSerializerOptions)

제공된 값을 으로 JsonDocument변환합니다.

SerializeToDocument<TValue>(TValue, JsonSerializerOptions)

제공된 값을 으로 JsonDocument변환합니다.

SerializeToDocument<TValue>(TValue, JsonTypeInfo<TValue>)

제공된 값을 으로 JsonDocument변환합니다.

SerializeToElement(Object, JsonTypeInfo)

제공된 값을 으로 JsonElement변환합니다.

SerializeToElement(Object, Type, JsonSerializerContext)

제공된 값을 으로 JsonElement변환합니다.

SerializeToElement(Object, Type, JsonSerializerOptions)

제공된 값을 으로 JsonElement변환합니다.

SerializeToElement<TValue>(TValue, JsonSerializerOptions)

제공된 값을 으로 JsonElement변환합니다.

SerializeToElement<TValue>(TValue, JsonTypeInfo<TValue>)

제공된 값을 으로 JsonElement변환합니다.

SerializeToNode(Object, JsonTypeInfo)

제공된 값을 으로 JsonNode변환합니다.

SerializeToNode(Object, Type, JsonSerializerContext)

제공된 값을 으로 JsonNode변환합니다.

SerializeToNode(Object, Type, JsonSerializerOptions)

제공된 값을 으로 JsonNode변환합니다.

SerializeToNode<TValue>(TValue, JsonSerializerOptions)

제공된 값을 으로 JsonNode변환합니다.

SerializeToNode<TValue>(TValue, JsonTypeInfo<TValue>)

제공된 값을 으로 JsonNode변환합니다.

SerializeToUtf8Bytes(Object, JsonTypeInfo)

제공된 값을 배열로 Byte 변환합니다.

SerializeToUtf8Bytes(Object, Type, JsonSerializerContext)

제공된 값을 배열로 Byte 변환합니다.

SerializeToUtf8Bytes(Object, Type, JsonSerializerOptions)

지정된 형식의 값을 UTF-8 바이트로 인코딩된 JSON 문자열로 변환합니다.

SerializeToUtf8Bytes<TValue>(TValue, JsonSerializerOptions)

제네릭 형식 매개 변수로 지정된 형식의 값을 UTF-8 바이트로 인코딩된 JSON 문자열로 변환합니다.

SerializeToUtf8Bytes<TValue>(TValue, JsonTypeInfo<TValue>)

제공된 값을 배열로 Byte 변환합니다.

적용 대상