Table of Contents

Class JsonFacade

Namespace
CodeBase
Assembly
4Experience.CodeBase.Core.Runtime.dll

JSON format utilities featuring save/load out-of-the-box methods.

public static class JsonFacade
Inheritance
JsonFacade

Methods

LoadJSONFile<T>(string)

Load Json file at provided path if file exist (if any problem occurs it will return default of T). Use Unity JsonUtility serialization.

public static T LoadJSONFile<T>(string filePath)

Parameters

filePath string

Returns

T

Type Parameters

T

SaveFile(string, object)

Save object as Json file at provided path if directory exist. Use Unity JsonUtility serialization.

public static void SaveFile(string filePath, object objectToSave)

Parameters

filePath string
objectToSave object