According to the documentation [1]:
"The JSON response body starts with a magic prefix line that
must be stripped before feeding the rest of the response body
to a JSON parser"
OK, this is fairly straightforward to implement in a client. However it
would be nice if the documentation also explained *why* the JSON has
this prefix.
I'd upload a change to add that, but I'm not actually sure what the
reason is. Something to do with security, I assume.
Can anyone clarify this?
Also, would it be reasonable to add a configuration option to disable
this magic prefix?
[1]
http://gerrit-documentation.googlecode.com/svn/Documentation/2.6/rest-api.html