JsonUtils.ParseJsonToken method

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

ParseJsonToken(string)

Static

Parses the specified json string into an instance JToken .

public static JToken ParseJsonToken(string json)

Parameters

json String

The JSON string to be parsed.

Returns

An instance of JObject parsed from the specified json string.

ParseJsonToken<T>(string)

Static

Parses the specified json string into an instance T.

public static T ParseJsonToken<T>(string json)

Type Parameters

T

Parameters

json String

The JSON string to be parsed.

Returns

T

An instance of T parsed from the specified json string.

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

Static

Parses the specified json string into an instance of T.

public static T ParseJsonToken<T>(string json, Func<T, TResult> func)

Type Parameters

T

The type to be returned.

Parameters

json String

The JSON string to be parsed.

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 parsed from the specified json string.