JObjectExtensions.GetInt32Array method

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

GetInt32Array(JObject, string)

Extension method

Gets an array of int from the token matching the specified path.

public static Int32[] GetInt32Array(this JObject obj, string path)

Parameters

obj JObject

The instance of JObject .

path String

A String that contains a JPath expression.

Returns

Array of int

The token value as an array of int .