JsonHelper.ParseJsonArray method

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

ParseJsonArray(string)

Static

Parses the specified json string into an instance of JArray .

public static JArray ParseJsonArray(string json)

Parameters

json String

The JSON string to be parsed.

Returns

An instance of JArray parsed from the specified json string.

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

Static

Parses the specified json string into an array of T.

public static T[] ParseJsonArray<T>(string json, Func<T, TResult> func)

Type Parameters

T

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

Array of T

An array of T parsed from the specified json string.