JsonHelper.SaveJsonArray method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Json
Assembly Skybrud.Essentials.dll

SaveJsonArray(string, JArray)

Static

Saves the specified JArray to the file at path. If the file doesn't already exist, a new file will be created.

public static Void SaveJsonArray(string path, JArray array)

Parameters

path String

The path to the file.

array JArray

The instance of JObject to be saved.

Returns

SaveJsonArray(string, JArray, Formatting)

Static

Saves the specified JArray to the file at path. If the file doesn't already exist, a new file will be created.

public static Void SaveJsonArray(string path, JArray array, Formatting formatting)

Parameters

path String

The path to the file.

array JArray

The instance of JObject to be saved.

formatting Formatting

The formatting to be used when saving the object.

Returns

SaveJsonArray(string, JToken[])

Static

Saves the specified array of JToken to the file at path. If the file doesn't already exist, a new file will be created.

public static Void SaveJsonArray(string path, JToken[] array)

Parameters

path String

The path to the file.

array Array of JToken

The array of JToken to be saved.

Returns

SaveJsonArray(string, JToken[], Formatting)

Static

Saves the specified array of JToken to the file at path. If the file doesn't already exist, a new file will be created.

public static Void SaveJsonArray(string path, JToken[] array, Formatting formatting)

Parameters

path String

The path to the file.

array Array of JToken

The array of JToken to be saved.

formatting Formatting

The formatting to be used when saving the object.

Returns

SaveJsonArray(string, JsonObjectBase[])

Static

Saves the specified array of JsonObjectBase to the file at path. If the file doesn't already exist, a new file will be created.

public static Void SaveJsonArray(string path, JsonObjectBase[] array)

Parameters

path String

The path to the file.

array Array of JsonObjectBase

The array of JsonObjectBase to be saved.

Returns

SaveJsonArray(string, JsonObjectBase[], Formatting)

Static

Saves the specified array of JsonObjectBase to the file at path. If the file doesn't already exist, a new file will be created.

public static Void SaveJsonArray(string path, JsonObjectBase[] array, Formatting formatting)

Parameters

path String

The path to the file.

array Array of JsonObjectBase

The array of JsonObjectBase to be saved.

formatting Formatting

The formatting to be used when saving the object.

Returns