I am using curl
with a really long -d, --data <data>
field containing JSON.
I would like to use backslash-newline to wrap around the JSON in the middle of the JSON string.
Here's an example: (creating a document in a local CouchDB instance)
curl -X PUT --user admin \
-d '{"foo":true,"bar":true,"baz":true,"qux":true,"quux":true,"quuz":true,"corge":true,"grault":true,"spam":true,"ham":true,"eggs":true}' \
http://localhost:5984/db/foobar | jq .
How is this done?