FrameIT
|
Classes | |
class | JsonAutoPostProcessAttribute |
class | JsonAutoPreProcessAttribute |
class | JsonSeparateAttribute |
Static Public Member Functions | |
static bool | WriteToJsonFile (string filePath, object objectToWrite) |
Writes the given object instance to a Json file, recursively, including public members, excluding [JsonIgnore]. More... | |
static bool | ReadFromJsonFile< T > (out T payload, string filePath) |
Reads an object instance from an Json file. More... | |
Does not yet work with collections
|
static |
Reads an object instance from an Json file.
Object type must have a parameterless constructor.
T | The type of object to read from the file. |
filePath | The file path to read the object instance from. |
T | : | new() |
|
static |
Writes the given object instance to a Json file, recursively, including public members, excluding [JsonIgnore].
Object type must have a parameterless constructor.
Only public properties and variables will be written to the file. These can be any type though, even other non-abstract classes.
filePath | The file path to write the object instance to. |
objectToWrite | The object instance to write to the file. |