C# 클래스 Newtonsoft.Json.JsonSerializer

Serializes and deserializes objects into and from the JSON format. The JsonSerializer enables you to control how objects are encoded into JSON.
파일 보기 프로젝트 열기: neuromat/goalkeeper_restapi 1 사용 예제들

공개 메소드들

메소드 설명
Create ( JsonSerializerSettings settings ) : JsonSerializer

Creates a new JsonSerializer instance using the specified JsonSerializerSettings.

Deserialize ( JsonReader reader ) : object

Deserializes the Json structure contained by the specified JsonReader.

Deserialize ( JsonReader reader, Type objectType ) : object

Deserializes the Json structure contained by the specified JsonReader into an instance of the specified type.

Deserialize ( TextReader reader, Type objectType ) : object

Deserializes the Json structure contained by the specified StringReader into an instance of the specified type.

Deserialize ( JsonReader reader ) : T

Deserializes the Json structure contained by the specified JsonReader into an instance of the specified type.

JsonSerializer ( ) : System

Initializes a new instance of the JsonSerializer class.

Populate ( JsonReader reader, object target ) : void

Populates the JSON values onto the target object.

Populate ( TextReader reader, object target ) : void

Populates the JSON values onto the target object.

Serialize ( JsonWriter jsonWriter, object value ) : void

Serializes the specified Object and writes the Json structure to a Stream using the specified JsonWriter.

Serialize ( TextWriter textWriter, object value ) : void

Serializes the specified Object and writes the Json structure to a Stream using the specified TextWriter.

비공개 메소드들

메소드 설명
DeserializeInternal ( JsonReader reader, Type objectType ) : object
GetMatchingConverter ( IList converters, Type objectType ) : JsonConverter
GetMatchingConverter ( Type type ) : JsonConverter
OnError ( ErrorEventArgs e ) : void
PopulateInternal ( JsonReader reader, object target ) : void
SerializeInternal ( JsonWriter jsonWriter, object value ) : void

메소드 상세

Create() 공개 정적인 메소드

Creates a new JsonSerializer instance using the specified JsonSerializerSettings.
public static Create ( JsonSerializerSettings settings ) : JsonSerializer
settings JsonSerializerSettings The settings to be applied to the .
리턴 JsonSerializer

Deserialize() 공개 메소드

Deserializes the Json structure contained by the specified JsonReader.
public Deserialize ( JsonReader reader ) : object
reader JsonReader The that contains the JSON structure to deserialize.
리턴 object

Deserialize() 공개 메소드

Deserializes the Json structure contained by the specified JsonReader into an instance of the specified type.
public Deserialize ( JsonReader reader, Type objectType ) : object
reader JsonReader The containing the object.
objectType Type The of object being deserialized.
리턴 object

Deserialize() 공개 메소드

Deserializes the Json structure contained by the specified StringReader into an instance of the specified type.
public Deserialize ( TextReader reader, Type objectType ) : object
reader TextReader The containing the object.
objectType Type The of object being deserialized.
리턴 object

Deserialize() 공개 메소드

Deserializes the Json structure contained by the specified JsonReader into an instance of the specified type.
public Deserialize ( JsonReader reader ) : T
reader JsonReader The containing the object.
리턴 T

JsonSerializer() 공개 메소드

Initializes a new instance of the JsonSerializer class.
public JsonSerializer ( ) : System
리턴 System

Populate() 공개 메소드

Populates the JSON values onto the target object.
public Populate ( JsonReader reader, object target ) : void
reader JsonReader The that contains the JSON structure to reader values from.
target object The target object to populate values onto.
리턴 void

Populate() 공개 메소드

Populates the JSON values onto the target object.
public Populate ( TextReader reader, object target ) : void
reader TextReader The that contains the JSON structure to reader values from.
target object The target object to populate values onto.
리턴 void

Serialize() 공개 메소드

Serializes the specified Object and writes the Json structure to a Stream using the specified JsonWriter.
public Serialize ( JsonWriter jsonWriter, object value ) : void
jsonWriter JsonWriter The used to write the Json structure.
value object The to serialize.
리턴 void

Serialize() 공개 메소드

Serializes the specified Object and writes the Json structure to a Stream using the specified TextWriter.
public Serialize ( TextWriter textWriter, object value ) : void
textWriter TextWriter The used to write the Json structure.
value object The to serialize.
리턴 void