JsonHelper.LoadJsonArray method

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

LoadJsonArray(string)

Static

Loads and parses the JSON array in the file at the specified path.

public static JArray LoadJsonArray(string path)

Parameters

path String

The path to the JSON file.

Returns

An instance of JArray .

LoadJsonArray<T>(string, Func<T, TResult>)

Static

Loads and parses the JSON object in the file at the specified path.

public static T[] LoadJsonArray<T>(string path, Func<T, TResult> func)

Type Parameters

T

The type to be returned.

Parameters

path String

The path to the JSON file.

func Func<T, TResult>

A callback function/method used for converting an instance of JObject into an instance of T.

Returns

Array of T

An instance of T.