Skip to main content

NPCStats.DataSaveJSON

Declaration#

public virtual string DataSaveJSON(bool removeNulls, bool readable)

Parameters#

NameDescription
removeNullsRemove nulls
readableAdd tabs and returns for readability

Description#

Save data as a JSON string

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(NPCStats target)    {        string result = target.DataSaveJSON(true, true);    }
}

Declaration#

public virtual void DataSaveJSON(string filename)

Parameters#

NameDescription
filenameName of file to use

Description#

Save data as a JSON file

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(NPCStats target, string filename)    {        target.DataSaveJSON(filename);    }
}