3 ms·
jq has a more polished CLI and can do 'everything'. jmespath is more limited, but is well specified and easier to fit in your head. It's also much more appropr
by wryun 9y ago
jq has a more polished CLI and can do 'everything'.
jmespath is more limited, but is well specified and easier to fit in your head. It's also much more appropriate for using as a library from other projects, since it has clean implementations in many languages. It's also an advantage in this case that it can't do everything, since you can more realistically provide untrusted user input.
jmespath's default (Go) CLI isn't as fully featured as jq, unfortunately.