Extracting a subset of attributes with JSONPath Extracting a subset of attributes with JSONPath json json

Extracting a subset of attributes with JSONPath


This will work using the Jayway implementation (Java):

$.A.AB[*]['ABB', 'ABA']

and the result for your input would be:

[   {      "ABB" : "1",      "ABA" : "0"   }]

You can Compare different providers here:

http://jsonpath.herokuapp.com/