When encoding an UTF-8 string in JSON, the assertion fails on line 212 in json.ipp. This is due to UTF-8 control bytes (e.g. 110xxxxx) being considered less than 0x1f on line 207. The char c argument should be converted to an unsigned integer before performing the comparison.
When encoding an UTF-8 string in JSON, the assertion fails on line 212 in json.ipp. This is due to UTF-8 control bytes (e.g.
110xxxxx
) being considered less than0x1f
on line 207. Thechar c
argument should be converted to an unsigned integer before performing the comparison.