meojson
meojson copied to clipboard
A modern all-platform Json/Json5 parser/serializer, which is header-only and used magic!
目前只能子类把基类的成员都列出来(
fix https://github.com/MistEO/meojson/issues/59
如 https://github.com/MistEO/meojson/blob/master/include/parser5/unicode.h 中的 space_separator数组,存在以下unicode序列 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005,其明显不是以 { start1, end1, start2, end2, ... } 的形式保存的。 且 https://www.compart.com/en/unicode/category/Zs 中显示0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005 均为 Space Separator
抛出的异常全是WRONG JSON,但并不知道具体是什么错误 有可能是类型错误,有可能是键不存在, 希望能给更明确的提示,比如可以从异常的what信息获知是哪个键有问题
https://github.com/MistEO/meojson/blob/595cd8e54e57fae5dbef08ef82d09c12a81b131d/include/parser5/parser5.hpp#L411-L413 函数 exceptionDetailInfo() 会先被调用并更新 _current_char 使异常信息不准确。
#36 改了下源分支