JsonSerializer 클래스

정의

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

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

설명

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

속성

IsReflectionEnabledByDefault

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

메서드

Deserialize(JsonDocument, JsonTypeInfo)

JsonDocument 단일 JSON 값을 나타내는 를 에서 지정jsonTypeInfo한 instance 변환합니다.

Deserialize(JsonDocument, Type, JsonSerializerContext)

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

Deserialize(JsonDocument, Type, JsonSerializerOptions)

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

Deserialize(JsonElement, JsonTypeInfo)

JsonElement 단일 JSON 값을 나타내는 를 에서 지정jsonTypeInfo한 instance 변환합니다.

Deserialize(JsonElement, Type, JsonSerializerContext)

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

Deserialize(JsonElement, Type, JsonSerializerOptions)

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

Deserialize(JsonNode, JsonTypeInfo)

JsonNode 단일 JSON 값을 나타내는 를 에서 지정jsonTypeInfo한 instance 변환합니다.

Deserialize(JsonNode, Type, JsonSerializerContext)

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

Deserialize(JsonNode, Type, JsonSerializerOptions)

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

Deserialize(ReadOnlySpan<Byte>, JsonTypeInfo)

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

Deserialize(ReadOnlySpan<Byte>, Type, JsonSerializerContext)

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

Deserialize(ReadOnlySpan<Byte>, Type, JsonSerializerOptions)

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

Deserialize(ReadOnlySpan<Char>, JsonTypeInfo)

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

Deserialize(ReadOnlySpan<Char>, Type, JsonSerializerContext)

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

Deserialize(ReadOnlySpan<Char>, Type, JsonSerializerOptions)

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

Deserialize(Stream, JsonTypeInfo)

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

Deserialize(Stream, Type, JsonSerializerContext)

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

Deserialize(Stream, Type, JsonSerializerOptions)

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

Deserialize(String, JsonTypeInfo)

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

Deserialize(String, Type, JsonSerializerContext)

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

Deserialize(String, Type, JsonSerializerOptions)

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

Deserialize(Utf8JsonReader, JsonTypeInfo)

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

Deserialize(Utf8JsonReader, Type, JsonSerializerContext)

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

Deserialize(Utf8JsonReader, Type, JsonSerializerOptions)

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

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 값을 나타내는 UTF-8로 인코딩된 텍스트를 로 TValue구문 분석합니다.

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(Stream, JsonTypeInfo, CancellationToken)

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

DeserializeAsync(Stream, Type, JsonSerializerContext, CancellationToken)

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

DeserializeAsync(Stream, Type, JsonSerializerOptions, CancellationToken)

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

DeserializeAsync<TValue>(Stream, JsonSerializerOptions, CancellationToken)

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

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

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

DeserializeAsyncEnumerable<TValue>(Stream, JsonSerializerOptions, CancellationToken)

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

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

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

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(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>(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)

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

SerializeToElement(Object, Type, JsonSerializerOptions)

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

SerializeToElement<TValue>(TValue, JsonSerializerOptions)

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

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

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

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 변환합니다.

적용 대상