Class JsonUtils
JSON utilities.
Inheritance
System.Object
JsonUtils
Namespace: Edgar.Utils
Assembly: Edgar.dll
Syntax
public static class JsonUtils : Object
Methods
LoadFromFile<T>(String)
Loads an object from a JSON file.
Declaration
public static T LoadFromFile<T>(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
SaveToFile<T>(T, String, Boolean)
Saves a given object to a JSON file.
Declaration
public static void SaveToFile<T>(T value, string filename, bool preserveReferences)
Parameters
Type | Name | Description |
---|---|---|
T | value | |
System.String | filename | |
System.Boolean | preserveReferences |
Type Parameters
Name | Description |
---|---|
T |