Extracts properties and their values from a JSON path query.
The JSON path query.
An object containing the properties and their values.
const query = `?(@.culture == 'en-us' && @.segment == 'mySegment')`;const props = extractJsonQueryProps(query);console.log(props); // { culture: 'en-us', segment: 'mySegment' } Copy
const query = `?(@.culture == 'en-us' && @.segment == 'mySegment')`;const props = extractJsonQueryProps(query);console.log(props); // { culture: 'en-us', segment: 'mySegment' }
Extracts properties and their values from a JSON path query.