JsonUtils.LoadJsonToken method

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

LoadJsonToken(string)

Static

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

public static JToken LoadJsonToken(string path)

Parameters

path String

The path to the JSON file.

Returns

An instance of JObject .

LoadJsonToken<T>(string)

Static

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

public static T LoadJsonToken<T>(string path)

Type Parameters

T

Parameters

path String

The path to the JSON file.

Returns

T

An instance of T.

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

Static

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

public static T LoadJsonToken<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 JToken into an instance of T.

Returns

T

An instance of T.