Author: buzz
Description:
If the api throws an error and the format is set to JSON, the error is additionally tagged onto the end of the JSON making it fail on JSON parsers.
for example
http://en.wikipedia.org/w/api.php?action=invalid&meta=siteinfo&format=json
will produce
{"error":{"code":"unknown_action","info":"Unrecognized value for parameter 'action': invalid"}}unknown_action: Unrecognized value for parameter 'action': invalid
instead of
{"error":{"code":"unknown_action","info":"Unrecognized value for parameter 'action': invalid"}}
Version: 1.13.x
Severity: normal