kazuho / picojson

a header-file-only, JSON parser serializer in C++
BSD 2-Clause "Simplified" License
1.12k stars 221 forks source link

Map of Maps is incorrectly parsed #105

Closed Vicfero closed 6 years ago

Vicfero commented 6 years ago

When given original.txt to picojson and serialized to string again, and manually curated to easily see the problem, we obtain reserialized.txt, which lacks information of the original JSON. This issue is not problem of the serialization, but the parsing, as the object lacks this information too.

original.txt reserialized.txt

Vicfero commented 6 years ago

Sorry, as seen the JSON contains a trailing comma that is producing the error. Closing the issue.