JsonUtils.SaveJsonObject method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Json |
---|---|
Assembly | Skybrud.Essentials.dll |
SaveJsonObject(string, JsonObjectBase)
Static
Saves the specified obj
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)
Static
Saves the specified obj
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)
Static
Saves the specified obj
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)
Returns
SaveJsonObject(string, JObject, Formatting)
Static
Saves the specified obj
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.
formatting
Formatting
The formatting to be used when saving the object.