I have some cli commands that run through an api and then pass to jq like so
cat json.txt | jq '.members[] | [.name]
But now i am trying to do some logic in python and then pipe it out to jq, but i can't figure out how to do it even in a similar way to the above.
I read through the documentation for jq module in python, but i just can't get it to work, can someone please help me out with this?