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

1 comment
Comment actions Permalink

Nevermind I was using the wrong header, I had to use this:

{"Accept" => "application/json"}

0

Please sign in to leave a comment.