json-tutorial icon indicating copy to clipboard operation
json-tutorial copied to clipboard

#tutorial1 能不能把检查JSON文本是否完结的部分直接分别加入lept_parse_true/false/null三个函数里面呢?

Open Chenpc3 opened this issue 8 years ago • 1 comments

能不能把检查JSON文本是否完结的部分分别加入lept_parse_true/false/null三个函数里面,而不是加入lept_parse函数里面呢?假如可以的话,两种方法孰优孰劣呢?为什么?

Chenpc3 avatar Dec 25 '17 04:12 Chenpc3

你是指 LEPT_PARSE_ROOT_NOT_SINGULAR 错误的处理么? 没理由那么做,这部分的处理不管parse什么类型都是一样的。

kingFighter avatar Dec 26 '17 09:12 kingFighter