3 ms·
Why not use JSON syntax for JSON instead of introducing your own, though?
by Camillo 14y ago
Why not use JSON syntax for JSON instead of introducing your own, though?
- jkbr 14y agoYou 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.