File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ $ time ./test_speed <repeat times> < xxx.json
2020~~~ c
2121/* Parse JSON text and create a JSON value. Returns NULL on parsing
2222 failures (Invalid JSON, nesting too deep, memory allocation failure).
23- @text : JSON text string */
24- json_value_t *json_value_parse (const char * text );
23+ @json : JSON text string */
24+ json_value_t *json_value_parse (const char * json );
2525
2626/* Destroy the JSON value
2727 @val : JSON value. Typically created by the parsing function. * /
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ $ time ./test_speed <重复次数> < xxx.json
1818### JSON value相关接口
1919~~~ c
2020/* 解析JSON文本产生JSON value。返回JSON value对象。返回NULL代表解析失败(格式不标准,嵌套过深,分配内存失败)
21- @text :文本字符串 */
22- json_value_t *json_value_parse (const char * text );
21+ @json :文本字符串 */
22+ json_value_t *json_value_parse (const char * json );
2323
2424/* 销毁JSON value
2525 @val :由parse, create或copy生成的JSON value对象。* /
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ extern "C"
2020{
2121#endif
2222
23- json_value_t * json_value_parse (const char * text );
23+ json_value_t * json_value_parse (const char * json );
2424json_value_t * json_value_create (int type , ...);
2525json_value_t * json_value_copy (const json_value_t * val );
2626void json_value_destroy (json_value_t * val );
You can’t perform that action at this time.
0 commit comments