Closed mrego closed 6 years ago
works as intended. This is a security feature so our JSON results will fail if you try to eval() them.
Thanks for the promt reply, just being curious could you ellaborate about those security concerns? Thanks.
If you query a JSON file you usually want to proccess it. Of course in this case you can just manipulate it and ignore the first line to avoid errors for example.
This is XSSI protection. See https://gerrit-review.googlesource.com/Documentation/rest-api.html#output for a similar case.
Thank you very much for the information. :smile:
JSON export starts with the following chars:
)]}'
Example URL: https://chromium.googlesource.com/chromium/src/+log/master?format=JSON Output: