JsonUtils.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 array 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, JObject[])

Static

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

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

Parameters

path String

The path to the file.

array Array of JObject

The array of JObject to be saved.

Returns

SaveJsonArray(string, JObject[], Formatting)

Static

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

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

Parameters

path String

The path to the file.

array Array of JObject

The array of JObject to be saved.

formatting Formatting

The formatting to be used when saving the object.

Returns

SaveJsonArray(string, IEnumerable<T>)

Static

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

public static Void SaveJsonArray(string path, IEnumerable<T> collection)

Parameters

path String

The path to the file.

collection IEnumerable<T>

The collection of JObject to be saved.

Returns

SaveJsonArray(string, IEnumerable<T>, Formatting)

Static

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

public static Void SaveJsonArray(string path, IEnumerable<T> collection, Formatting formatting)

Parameters

path String

The path to the file.

collection IEnumerable<T>

The collection 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 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 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, IEnumerable<T>)

Static

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

public static Void SaveJsonArray(string path, IEnumerable<T> collection)

Parameters

path String

The path to the file.

collection IEnumerable<T>

The collection of JToken to be saved.

Returns

SaveJsonArray(string, IEnumerable<T>, Formatting)

Static

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

public static Void SaveJsonArray(string path, IEnumerable<T> collection, Formatting formatting)

Parameters

path String

The path to the file.

collection IEnumerable<T>

The collection 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 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 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

SaveJsonArray<T>(string, T[])

Static
public static Void SaveJsonArray<T>(string path, T[] array)

Type Parameters

T

Parameters

path String
array Array of T

Returns

SaveJsonArray<T>(string, T[], Formatting)

Static
public static Void SaveJsonArray<T>(string path, T[] array, Formatting formatting)

Type Parameters

T

Parameters

path String
array Array of T
formatting Formatting

Returns

SaveJsonArray(string, IEnumerable<T>)

Static

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

public static Void SaveJsonArray(string path, IEnumerable<T> collection)

Parameters

path String

The path to the file.

collection IEnumerable<T>

The collection of JsonObjectBase to be saved.

Returns

SaveJsonArray(string, IEnumerable<T>, Formatting)

Static

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

public static Void SaveJsonArray(string path, IEnumerable<T> collection, Formatting formatting)

Parameters

path String

The path to the file.

collection IEnumerable<T>

The collection of JsonObjectBase to be saved.

formatting Formatting

The formatting to be used when saving the object.

Returns