Utility methods for serializing/deserializing JSON data.
More...
Utility methods for serializing/deserializing JSON data.
◆ FromJson< T >()
static ? T Anvil.API.JsonUtility.FromJson< T > |
( |
string |
json | ) |
|
|
inlinestatic |
Deserializes a JSON string.
- Parameters
-
json | The JSON to deserialize. |
- Template Parameters
-
T | The type to deserialize to. |
- Returns
- The deserialized object.
◆ ToJson< T >()
static string Anvil.API.JsonUtility.ToJson< T > |
( |
T |
value | ) |
|
|
inlinestatic |
Serializes a value as JSON.
- Parameters
-
value | The value to serialize. |
- Template Parameters
-
T | The type of the value to serialize. |
- Returns
- A JSON string representing the value.
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/API/Utils/JsonUtility.cs