What’s the easiest way to do a JSON call from the command-line? I have a website that does a JSON call to retrieve additional data.
The Request Payload as shown in Google Chrome looks like this:
{"version": "1.1", "method":"progr","id":2,"params":{"call":...} }
It’s about doing the call from (preferably) linux command line and retrieving the JSON content, not about parsing the incoming JSON data.
Use curl, assuming the data is POST’ed, something like
If you’re just retrieving the data with a GET , and don’t need to send anything bar URL parameters,
you’d just run
curl http://example.com/some/path