I\'m trying to convert an object that looks like this:
{ \"123\" : \"abc\", \"231\" : \"dbh\", \"452\" : \"xyz\" }
To csv that looks
Try This give same output you want
echo '{"123":"abc","231":"dbh","452":"xyz"}' | jq -r 'to_entries | .[] | "\"" + .key + "\",\"" + (.value | tostring)+ "\""'