Utility methods to convert JSON data serialized by Unity's built-in JSON utility to .NET objects with Newtonsoft.Json. More...
Static Public Member Functions | |
static object | DeserializeObject (JObject root, Type type, JsonSerializerSettings settings=null) |
Deserializes the specified JSON object to the specified type using the provided JsonSerializerSettings. Settings must have ContractResolver set to null . More... | |
static object | DeserializeObject (string json, Type type, JsonSerializerSettings settings=null) |
Deserializes the specified JSON string to the specified type using the provided JsonSerializerSettings. More... | |
static T | DeserializeObject< T > (JObject root, JsonSerializerSettings settings=null) |
Deserializes the specified JSON object to the specified type using the provided JsonSerializerSettings. More... | |
static T | DeserializeObject< T > (string json, JsonSerializerSettings settings=null) |
Deserializes the specified JSON string to the specified type using the provided JsonSerializerSettings. More... | |
static string | SerializeObject (object value, Type rootType=null, JsonSerializerSettings settings=null) |
Serializes the specified object to a JSON string using the provided JsonSerializerSettings. More... | |
Utility methods to convert JSON data serialized by Unity's built-in JSON utility to .NET objects with Newtonsoft.Json.
|
inlinestatic |
Deserializes the specified JSON object to the specified type using the provided JsonSerializerSettings. Settings must have ContractResolver set to null
.
root | The JSON object to deserialize. |
type | The type to deserialize the JSON object to. |
settings | The JsonSerializerSettings to use for deserialization. (optional) |
|
inlinestatic |
Deserializes the specified JSON string to the specified type using the provided JsonSerializerSettings.
json | The JSON string to deserialize. |
type | The type to deserialize the JSON string to. |
settings | The JsonSerializerSettings to use for deserialization. (optional) |
|
inlinestatic |
Deserializes the specified JSON object to the specified type using the provided JsonSerializerSettings.
T | The type to deserialize the JSON object to. |
root | The JSON object to deserialize. |
settings | The JsonSerializerSettings to use for deserialization. (optional) |
|
inlinestatic |
Deserializes the specified JSON string to the specified type using the provided JsonSerializerSettings.
T | The type to deserialize the JSON string to. |
json | The JSON string to deserialize. |
settings | The JsonSerializerSettings to use for deserialization. (optional) |
|
inlinestatic |
Serializes the specified object to a JSON string using the provided JsonSerializerSettings.
value | The object to serialize. |
rootType | The root type of the object. (optional) |
settings | The JsonSerializerSettings to use for serialization. (optional) |