Menu

#17 Error on empty array

open
nobody
None
5
2006-12-20
2006-12-20
Anonymous
No

On parsing JSON with an empty array with a newline between the opening and closing bracket the parser throws an error:

json.ReadException: Input is not valid JSON: '[\n]
'

input can be as simple as this:

[
]

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.