[Pharo-users] NeoJSONParseError: invalid input: ' while parsing a Wikipedia exported article.
peter at pbkresearch.co.uk
Sat Feb 8 04:34:45 EST 2020
I have a workaround, not an explanation. I don't use NeoJSON, because for me the JSON facilities of STON are sufficient. So I tried you script with 'NeoJSONReader fromString:' replaced by 'STON fromString:' - everything worked perfectly, no parsing error. So clearly there is nothing wrong with your input file. If you have STON installed, or think it worth installing, this could get you moving.
From: Pharo-users <pharo-users-bounces at lists.pharo.org> On Behalf Of Offray Vladimir Luna Cárdenas
Sent: 08 February 2020 07:38
To: Any question about pharo is welcome <pharo-users at lists.pharo.org>
Subject: [Pharo-users] NeoJSONParseError: invalid input: ' while parsing a Wikipedia exported article.
I'm trying to read the contents of a Wikipedia article that was exported from there using Wikipedias JSON API.
The script I'm trying is:
asUrl retrieveContents utf8Decoded
But I get "NeoJSONParseError: invalid input: '". As far as I can tell, the file at  seems like valid JSON, as is the one that Wikipedia API exports
Could anybody point me to a solution?
More information about the Pharo-users