Contains methods for serializing objects to and from JSON.
More...
Contains methods for serializing objects to and from JSON.
Definition at line 10 of file JsonSerialization.cs.
◆ GetJsonString< T >()
Returns the JSON string for the object graph.
- Parameters
-
graph | The object graph. |
settings | The writer settings. Pretty print used if none specified. |
Definition at line 17 of file JsonSerialization.cs.
◆ LoadEncryptedJson< T >()
static T LoadEncryptedJson< T > |
( |
string |
path, |
|
|
byte[] |
key |
|
) |
| |
|
static |
Loads the object from an encrypted JSON file.
- Parameters
-
path | The file path. |
key | The secret key. |
Definition at line 112 of file JsonSerialization.cs.
◆ LoadJson< T >() [1/2]
static T LoadJson< T > |
( |
byte[] |
bytes | ) |
|
|
static |
◆ LoadJson< T >() [2/2]
static T LoadJson< T > |
( |
string |
path | ) |
|
|
static |
◆ LoadJsonString< T >()
static T LoadJsonString< T > |
( |
string |
json | ) |
|
|
static |
◆ SaveEncryptedJson< T >()
static void SaveEncryptedJson< T > |
( |
string |
path, |
|
|
T |
graph, |
|
|
byte[] |
key |
|
) |
| |
|
static |
Serializes the object as encrypted JSON to the specified path.
- Parameters
-
path | The file path. |
graph | The object graph. |
key | The secret key. |
Definition at line 97 of file JsonSerialization.cs.
◆ SaveJson< T >()
static void SaveJson< T > |
( |
string |
path, |
|
|
T |
graph |
|
) |
| |
|
static |
Serializes the object as JSON to the specified file path.
- Parameters
-
path | The file path. |
graph | The object graph. |
Definition at line 44 of file JsonSerialization.cs.
The documentation for this class was generated from the following file: