MZMcBride wrote:
The error you're getting generally means that the JSON was malformed for some reason. It seems unlikely that MediaWiki's api.php is outputting invalid JSON, but I suppose it's possible.
I left a note on the Phabricator task that Marius linked to: https://phabricator.wikimedia.org/T133866#2272654.
It seems api.php end-points really are outputting garbage characters in some cases, though it remains unclear which layer is to blame. :-/
MZMcBride