Skip to content

Instantly share code, notes, and snippets.

@ProximaB
Created March 5, 2021 07:09
Show Gist options
  • Save ProximaB/8c3d8acdf4111c85dc42fe64af1f491b to your computer and use it in GitHub Desktop.
Save ProximaB/8c3d8acdf4111c85dc42fe64af1f491b to your computer and use it in GitHub Desktop.
> foo=$(cat <<EOF
{
"Items":
[
{
"title": "A Midsummer Night's Dream",
"tags":[
"comedy",
"shakespeare",
"play"
]
},{
"title": "A Tale of Two Cities",
"tags":[
"french",
"revolution",
"london"
]
}
]
}
EOF
)
> echo $foo | jq
{
"Items":
[
{
"title": "A Midsummer Night's Dream",
"tags":[
"comedy",
"shakespeare",
"play"
]
},{
"title": "A Tale of Two Cities",
"tags":[
"french",
"revolution",
"london"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment