by sghael · 15y ago · 0 comments
in your example returning "Content-Type: text/plain; charset=UTF-8" which is nice because FF knows to render it in the browser (good for debugging atleast).
But votes on SO seem to indicate it should be "application/json"
http://stackoverflow.com/questions/477816/the-right-json-con...
Additionally, if no encoding is specified, UTF-8 should be assumed when dealing with JSON.