kazuho/picojson

Conformance report for reference

miloyip opened this issue · 1 comments

Great test! Thank you for reporting this!

For the first three failures reported for validation, we consider them as non-issues. The API of picojson is designed to parse until it sees the end of JSON. And with some of the provided APIs it is possible to obtain the end of the JSON. For example:

const char* json_end = picojson::parse(v, json, json + strlen(json), &err);

The fourth failure (handling of 013) is indeed a bug. Thank you for catching this.

Regarding the roundtrip tests, parsing and encoding of the numbers are done using sprintf / sscanf in picojson. If there is any error, your libc should be blamed for.