Answers for "get json value from curl response"

1

curl post json object command

curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"id":100}' http://localhost/api/postJsonReader.do
Posted by: Guest on May-03-2020
0

curl send json as variable

jsonvariable="{"ora" : "value1", "temp" : "value2", "rh" : "value3", "lat" : "value4", "longi" : "value5"}"


curl -X POST -H "Content-Type: application/json" -d '$jsonvariable' http://localhost:8080/updates
Posted by: Guest on April-22-2022

Code answers related to "get json value from curl response"

Code answers related to "Javascript"

Browse Popular Code Answers by Language