Table of Contents

ExtractObjectValues Method

Definition

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

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

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

public static void ExtractObjectValues(this IEnumerable<JDataResult> source, string propertyNames, Action<IDictionary<string, 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, JDataResult>>

The delegate that will extract values from propertyNames.