Why not use JSON syntax for JSON instead of introducing your own, though?
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