jansson icon indicating copy to clipboard operation
jansson copied to clipboard

Conformance report for reference

Open miloyip opened this issue 9 years ago • 1 comments

https://github.com/miloyip/nativejson-benchmark/blob/master/sample/conformance_Jansson%20(C).md

miloyip avatar Sep 09 '16 05:09 miloyip

Thanks. Some of the "parse string" and "roundtrip" ones can be fixed easily: https://github.com/miloyip/nativejson-benchmark/pull/97

The others are more difficult:

  • The double parsing behavior is documented (https://jansson.readthedocs.io/en/latest/conformance.html#real-vs-integer), Jansson doesn't fall back to double on integer overflow. Maybe we could add a flag to do so.

  • The double serialization issues are because Jansson doesn't always generate the shortest form when serializing doubles. It could be argued that that isn't even an error because the decimal strings represent the same IEEE 64-bit numbers.

phst avatar Dec 25 '17 22:12 phst