Here\'s the minimal example:
echo "{\\"foo\\": \\"John\\",\\"bar\\":\\"Smith\\"}" | jq -r \'@sh "export