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.