Skip to main content

SimpleJson.FromJSONOverwrite

Declaration#

public static void FromJSONOverwrite(Object obj, string json)

Parameters#

NameDescription
objObject to update
jsonJSON 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);    }
}