JSON API
Hi,
Does the Rest API that comes with 6.0.3 support Content-Type = application/json? I tried using ruby with the open-uri gem to fetch a json object and I get back xml.
open(url, "Content-Type" => "application/json").read
Do I need to install the json api plugin to get json back?
https://github.com/cread/tcjson
Thanks,
Jay
Please sign in to leave a comment.
Nevermind I was using the wrong header, I had to use this:
{"Accept" => "application/json"}