Several compromises were made to reduce the footprint of the library:
- The parser isn’t strict and accepts some invalid inputs.
For example, it doesn’t reject malformed UTF-16 surrogate pairs, like
- Keys containing NUL characters (ASCII code 0, or
\u0000) are not supported and get truncated.
- The string-to-float conversion is not perfect.
For example, if the input is
0.123, you’ll get