JsonHelpers.ParseJsonObject method

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

ParseJsonObject(string)

Static

Parses the specified json string into an instance JObject .

public static JObject ParseJsonObject(string json)

Parameters

json String

The JSON string to be parsed.

Returns

An instance of JObject parsed from the specified json string.

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

Static

Parses the specified json string into an instance of T.

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

Returns

T

An instance of T parsed from the specified json string.