Forum Discussion
2 Replies
- Michael_JenkinsCirrostratus
I think it depends on what your goal is, whether it be an application, script, or website.
For scripts, I tend to use PowerShell mostly because it's quick to grab what I need and you can use the
command which will automatically bring the JSON response back as an object, making it easier to work with.Invoke-RestMethod
If you're looking at web stuff, I generally use jQuery (or similar libraries for Ajax calls).
Also, if you're just looking to test some iControlRest stuff, you could use a Chrome extension called Postman. It's pretty useful for testing REST calls.
Hope this helps.
I'll ditto Michael's comments. It depends on your platform. If you are on Windows, the PowerShell is a good choice. For non-windows systems, it depends on your skills. I'm like Node.js lately as has JSON/etc built in but you can use JSON packages in most of the other main languages out there (perl, python, etc).
If you just want to use a shell (sh, bash, etc) with curl, then the jq command line tool is pretty helpful in parsing JSON responses. http://stedolan.github.com/jq
Good luck!