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