Commit 8bf62f0
committed
修复大JSON被分包时解析失败的问题
查找换行符时,使用了数组 data[i],而不是 buf[i]。当大JSON被分包时(一次断数十个断点必现),data
只包含当前包的数据,导致json解析失败。
libc++abi: terminating due to uncaught exception of type nlohmann::detail::parse_error: [json.exception.parse_error.101] parse error at line 1, column 4566: syntax error while parsing object key - invalid string: missing closing quote; last read: '"f'; expected string literal1 parent b4b10e1 commit 8bf62f0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments