jq: Resolving “Cannot index array with string” errors from jq
jq has a very powerful expression language for querying and transforming json. But when dealing with complex data structures and responses in the real-world, well-tested happy path queries can fail. One common error is: jq: error (at <stdin>:1): Cannot index array with string “…” The root cause is that your query is attempting to pull … jq: Resolving “Cannot index array with string” errors from jq