Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Created December 25, 2023 04:19
Show Gist options
  • Save dasgoll/e80336eaa819c87dffb095a6d66836de to your computer and use it in GitHub Desktop.
Save dasgoll/e80336eaa819c87dffb095a6d66836de to your computer and use it in GitHub Desktop.
use jq to escape json
echo '{"foo": 0}' > foo.json
jq @json < foo.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment