How to search json for a string and output a parent value using jq?

Advertisements Trying to pull a value out with jq, but didn’t seem as easy as i originally thought. I have a variable of CAR="baga6e~tlwdcmli__QmbHKa~G65fMXzh.car". How can i use this variable to return the parent "piece_cid" ? Example: Using a bash varible of $CAR with a value of baga6e~tlwdcmli__QmbHKa~G65fMXzh.car, id be able to get the results… Read More How to search json for a string and output a parent value using jq?