JsonHelper.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 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.

The instance of JsonObjectBase to be saved.

Returns

SaveJsonObject(string, JsonObjectBase, Formatting)

Static

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.

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 JObject 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 JObject to be saved.

Returns

SaveJsonObject(string, JObject, Formatting)

Static

Saves the specified JObject 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 JObject to be saved.

formatting Formatting

The formatting to be used when saving the object.

Returns