JArrayExtensions.GetString method

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

GetString(JArray, int)

Extension method

Gets a string from the item at the specified index in the array.

public static string GetString(this JArray array, int index)

Parameters

array JArray

The parent array.

index int

The index of the item.

Returns

GetString(JArray, string)

Extension method

Gets a string from the token matching the specified path.

public static string GetString(this JArray array, string path)

Parameters

array JArray

The parent array.

path String

A String that contains a JPath expression.

Returns

An instance of String , or null if path didn't match any tokens.