SimpleJson.FromJSONOverwrite
Declaration#
public static void FromJSONOverwrite(Object obj, string json)Parameters#
| Name | Description |
|---|---|
| obj | Object to update |
| json | JSON to use |
Description#
Overwrites object data with values from a JSON string
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod(object target, string json) { // Overwrite an objects values with those deserialized from json SimpleJson.FromJSONOverwrite(target, json); }
}