JsonHelper.SaveJsonArray method
Namespace | Skybrud.Essentials.Json |
---|---|
Assembly | Skybrud.Essentials.dll |
SaveJsonArray(string, JArray)
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)
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, JToken[])
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)
Returns
SaveJsonArray(string, JToken[], Formatting)
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.
formatting
Formatting
The formatting to be used when saving the object.
Returns
SaveJsonArray(string, JsonObjectBase[])
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)
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.