4 ms·
You can still use regular JSON syntax, if you like: echo '{"foo": "bar"}' | http url The reason for having the simplified one is that it's less verbose an
by jkbr 14y ago
You can still use regular JSON syntax, if you like:
echo '{"foo": "bar"}' | http url
The reason for having the simplified one is that it's less verbose and usually doesn't even require you to quote it:
http url foo=bar
- javajosh 14y agoYeah, most of us would forget to single quote the JSON. It is definitely more verbose too - I agree with the command-line compatible simplification.