Table of Contents

ExtractArrayValues Method

Definition

Namespace
Codebelt.Extensions.Newtonsoft.Json
Assemblies
Codebelt.Extensions.Newtonsoft.Json.dll
Source
src/Codebelt.Extensions.Newtonsoft.Json/JDataResultExtensions.cs

ExtractArrayValues(IEnumerable<JDataResult>, string, Action<IDictionary<string, IEnumerable<JDataResult>>>)

Extracts one or more values from JSON arrays using the specified propertyNames and extractor delegate.

public static void ExtractArrayValues(this IEnumerable<JDataResult> source, string propertyNames, Action<IDictionary<string, IEnumerable<JDataResult>>> extractor)

Parameters

source IEnumerable<JDataResult>

The sequence of JDataResult to parse.

propertyNames string

The comma-delimited property names (JSON path) to math in a JSON document.

extractor Action<IDictionary<string, IEnumerable<JDataResult>>>

The delegate that will extract values from propertyNames.