Class JsonObjectConverter
JsonObjectConverter overrides behaviour from JsonConverter to allow encapsulation of raw object types and conversion between different types.
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: Unity.Services.Lobbies.Http
Assembly: Unity.Services.Lobbies.dll
Syntax
[Preserve]
public class JsonObjectConverter : JsonConverter
Methods
CanConvert(Type)
Converts an object to and from JSON.
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
Type | objectType |
Returns
Type | Description |
---|---|
bool |
Overrides
ReadJson(JsonReader, Type, object, JsonSerializer)
Converts an object to and from JSON.
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonReader | reader | |
Type | objectType | |
object | existingValue | |
JsonSerializer | serializer |
Returns
Type | Description |
---|---|
object |
Overrides
WriteJson(JsonWriter, object, JsonSerializer)
Converts an object to and from JSON.
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonWriter | writer | |
object | value | |
JsonSerializer | serializer |