Answers for "curl with json format"

PHP
4

curl output pretty print

curl ... | json_pp
Posted by: Guest on November-01-2020
18

curl post json

curl -X POST -H "Content-Type: application/json" \
 -d '{"username":"abc","password":"abc"}' \
 https://api.example.com/v2/login
Posted by: Guest on July-03-2020
1

curl pretty print json

echo '{"foo": "lorem", "bar": "ipsum"}' | jq
Posted by: Guest on December-18-2020

Browse Popular Code Answers by Language