JsonHelpers.SaveJsonObject method
Namespace | Skybrud.Essentials.Json |
---|---|
Assembly | Skybrud.Essentials.dll |
SaveJsonObject(string, JsonObjectBase)
Saves the specified JsonObjectBase to the file at path
. If the file doesn't
already exist, a new file will be created.
public static Void SaveJsonObject(string path, JsonObjectBase obj)
Parameters
path
String
The path to the file.
obj
JsonObjectBase
The instance of JsonObjectBase to be saved.
Returns
SaveJsonObject(string, JsonObjectBase, Formatting)
Saves the specified JsonObjectBase to the file at path
. If the file doesn't
already exist, a new file will be created.
public static Void SaveJsonObject(string path, JsonObjectBase obj, Formatting formatting)
Parameters
path
String
The path to the file.
obj
JsonObjectBase
The instance of JsonObjectBase to be saved.
formatting
Formatting
The formatting to be used when saving the object.
Returns
SaveJsonObject(string, JObject)
Saves the specified JsonObjectBase to the file at path
. If the file doesn't
already exist, a new file will be created.
public static Void SaveJsonObject(string path, JObject obj)
Parameters
path
String
The path to the file.
obj
JObject
The instance of JsonObjectBase to be saved.
Returns
SaveJsonObject(string, JObject, Formatting)
Saves the specified JsonObjectBase to the file at path
. If the file doesn't
already exist, a new file will be created.
public static Void SaveJsonObject(string path, JObject obj, Formatting formatting)
Parameters
path
String
The path to the file.
obj
JObject
The instance of JsonObjectBase to be saved.
formatting
Formatting
The formatting to be used when saving the object.