|
static void | WriteToJsonFile (string filePath, object objectToWrite, int max_depth=0) |
| Writes the given object instance to a Json file, recursively to set depth, including all members. More...
|
|
static T | ReadFromJsonFile< T > (string filePath) |
| Reads an object instance from an Json file. More...
|
|
◆ ReadFromJsonFile< T >()
static T JSONManager.ReadFromJsonFile< T > |
( |
string |
filePath | ) |
|
|
static |
Reads an object instance from an Json file.
Object type must have a parameterless constructor.
- Template Parameters
-
T | The type of object to read from the file. |
- Parameters
-
filePath | The file path to read the object instance from. |
- Returns
- Returns a new instance of the object read from the Json file.
◆ WriteToJsonFile()
static void JSONManager.WriteToJsonFile |
( |
string |
filePath, |
|
|
object |
objectToWrite, |
|
|
int |
max_depth = 0 |
|
) |
| |
|
static |
Writes the given object instance to a Json file, recursively to set depth, including all members.
Object type must have a parameterless constructor.
Only All properties and variables will be written to the file. These can be any type though, even other non-abstract classes.
- Parameters
-
filePath | The file path to write the object instance to. |
objectToWrite | The object instance to write to the file. |
max_depth | The depth recursion will occur. Default = 0. |
◆ MMTURIs
The documentation for this class was generated from the following file:
- D:/Users/marco/Dokuments/OneDrive/FAU/Informatik/UFrameIT/FrameIT/Windows/MaZiFAU/Assets/Scripts/JSONManager.cs