ExtractArrayValues Method
Definition
- Namespace
- Codebelt.Extensions.Newtonsoft.Json
- Assemblies
- Codebelt.Extensions.Newtonsoft.Json.dll
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
sourceIEnumerable<JDataResult>The sequence of JDataResult to parse.
propertyNamesstringThe comma-delimited property names (JSON path) to math in a JSON document.
extractorAction<IDictionary<string, IEnumerable<JDataResult>>>The delegate that will extract values from
propertyNames.