Converts byte arrays to and from JSON in a way compatible with the Unity's built-in JSON utility.
More...
Inherits JsonConverter.
|
| override bool | CanConvert (Type objectType) |
| | Determines whether this converter can convert the specified object type. More...
|
| |
| override object | ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) |
| | Reads the JSON representation of the object. More...
|
| |
| override void | WriteJson (JsonWriter writer, object value, JsonSerializer serializer) |
| | Writes the JSON representation of the object. More...
|
| |
Converts byte arrays to and from JSON in a way compatible with the Unity's built-in JSON utility.
◆ CanConvert()
| override bool Quantum.Json.ByteArrayConverter.CanConvert |
( |
Type |
objectType | ) |
|
|
inline |
Determines whether this converter can convert the specified object type.
- Parameters
-
| objectType | The type of the object to convert. |
- Returns
true if the converter can convert the specified object type; otherwise, false.
◆ ReadJson()
| override object Quantum.Json.ByteArrayConverter.ReadJson |
( |
JsonReader |
reader, |
|
|
Type |
objectType, |
|
|
object |
existingValue, |
|
|
JsonSerializer |
serializer |
|
) |
| |
|
inline |
Reads the JSON representation of the object.
- Parameters
-
| reader | The JsonReader to read from. |
| objectType | The type of the object to convert. |
| existingValue | The existing value of object being read. |
| serializer | The calling serializer. |
- Returns
- The deserialized object.
◆ WriteJson()
| override void Quantum.Json.ByteArrayConverter.WriteJson |
( |
JsonWriter |
writer, |
|
|
object |
value, |
|
|
JsonSerializer |
serializer |
|
) |
| |
|
inline |
Writes the JSON representation of the object.
- Parameters
-
| writer | The JsonWriter to write to. |
| value | The value to write. |
| serializer | The calling serializer. |
◆ SerializeAsBase64
| bool Quantum.Json.ByteArrayConverter.SerializeAsBase64 |
|
getset |
If true, serializes arrays as base64 string.