Closed zoffixznet closed 9 years ago
Thank you for your report. This is fixed via
commit 4a6384e6da0968f93160d4b3a54c6efcf12453ea
If you are interested, details of what happened follow.
Thank you again for your report.
The error was here:
It was testing the value of the character ("c") before, rather than after, reading it from the master string ("s"). In other words it was making a meaningless test of an uninitialized value to find where the string ended.
This had not been detected earlier because everything except "null" production was going via another routine, add_str_len, here:
Also, there were no tests for the documented behaviour, which claimed to produce null with undefined values. (In fact I had not even confirmed this statement at the time of writing it, let alone writtten module tests.)
Thanks once more.
The docs advertise
undef
s to be encoded asnull
s, but currently broken JSON is generated instead: