JsonUtils.SaveJsonArray method
Namespace | Skybrud.Essentials.Json |
---|---|
Assembly | Skybrud.Essentials.dll |
SaveJsonArray(string, JArray)
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)
Returns
SaveJsonArray(string, JArray, Formatting)
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.
formatting
Formatting
The formatting to be used when saving the object.
Returns
SaveJsonArray(string, JObject[])
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.
Returns
SaveJsonArray(string, JObject[], Formatting)
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.
formatting
Formatting
The formatting to be used when saving the object.
Returns
SaveJsonArray(string, IEnumerable<T>)
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)
Returns
SaveJsonArray(string, IEnumerable<T>, Formatting)
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.
The collection of JObject to be saved.
formatting
Formatting
The formatting to be used when saving the object.
Returns
SaveJsonArray(string, JToken[])
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)
Returns
SaveJsonArray(string, JToken[], Formatting)
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.
formatting
Formatting
The formatting to be used when saving the object.
Returns
SaveJsonArray(string, IEnumerable<T>)
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)
Returns
SaveJsonArray(string, IEnumerable<T>, Formatting)
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.
The collection of JToken to be saved.
formatting
Formatting
The formatting to be used when saving the object.
Returns
SaveJsonArray(string, JsonObjectBase[])
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)
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[])
public static Void SaveJsonArray<T>(string path, T[] array)
Type Parameters
T
Returns
SaveJsonArray<T>(string, T[], Formatting)
public static Void SaveJsonArray<T>(string path, T[] array, Formatting formatting)
Type Parameters
T
Returns
SaveJsonArray(string, IEnumerable<T>)
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)
Returns
SaveJsonArray(string, IEnumerable<T>, Formatting)
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.
The collection of JsonObjectBase to be saved.
formatting
Formatting
The formatting to be used when saving the object.