v1.0.0
Latest
2022.3+

Class JsonObjectConverter

JsonObjectConverter overrides behaviour from JsonConverter to allow encapsulation of raw object types and conversion between different types.

Inheritance
System.Object
JsonObjectConverter
Namespace: Unity.Services.Lobbies.Http
Syntax
public class JsonObjectConverter : JsonConverter

Methods

CanConvert(Type)

Declaration
public override bool CanConvert(Type objectType)
Parameters
TypeNameDescription
System.TypeobjectType
Returns
TypeDescription
System.Boolean

ReadJson(JsonReader, Type, Object, JsonSerializer)

Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
TypeNameDescription
JsonReaderreader
System.TypeobjectType
System.ObjectexistingValue
JsonSerializerserializer
Returns
TypeDescription
System.Object

WriteJson(JsonWriter, Object, JsonSerializer)

Convert a JsonObject to JToken.

Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
TypeNameDescription
JsonWriterwriter
System.Objectvalue
JsonSerializerserializer