~/toolhouse

JSONPath / jq

live query · jsonpath · jq

result
paste JSON on the left and a query above
cheat sheet · jsonpath
  • $the root document
  • $.users[*].nameall user names
  • $..nameevery name, recursively
  • $.users[0]first element
  • $.users[-1:]last element (slice)
  • $.users[?(@.age > 30)]filter by predicate
  • $.users[?(@.active==true)].namefilter then project

Press y to copy the result.