Just ran into this myself and the fix was just adding #!/bin/bash to the top of my script, no sophisticated jq needed at all (though I was glad to learn about it!)
#!/bin/bash
jq