by Powdering7082 · 2y ago · 0 comments
JSONPath can only pull data out, like XPath. jq can do much more, like perform transformations.
jq is also more concise:
.book[0].title
versus JSONPath: $..book[0].title
Here's a discussion with more comparisons: https://github.com/serverlessworkflow/specification/issues/2...This is about using JSONPath for OpenAPI Overlays and automated API Style Guides like Spectral.
You cannot use jq for either of those things.
Notbing against jq, just a different discussion.