6

I recently discovered a nice little feature in the PAW app, that allows me to filter json in the response panel.

Unfortunately, it seems only to be able to select base on the key names. Is there some documentation somewhere that would explain the syntax of this filter (if any).

I was hoping actually, that it would be backed by something as powerful as jq's query language.

Roland Tepp
  • 8,301
  • 11
  • 55
  • 73

1 Answers1

4

For the KeyPath in the filter you can see the example in the screenshot, it takes the format address.geocode.latitude for example (keys separated with dots).enter image description here

Natalia Panferova
  • 1,134
  • 7
  • 9
  • 2
    Thanks, this works, but only for simple path expressions. What if I have more complex queries I want to perform -- e.g. only show paths that have a specific value. Something akin to the following jq filter: `.addresses[] | select(.city == "New York").streetName | unique` – Roland Tepp May 02 '16 at 09:56
  • 1
    It isn't supported at the moment, but we will be adding more complex queries in future releases. – Natalia Panferova May 02 '16 at 10:06
  • 4
    I do hope you will add support for jq query language (https://stedolan.github.io/jq/manual/). Or maybe you can do even better and add some form of pluggable query language support ... – Roland Tepp May 02 '16 at 11:11