improve conf json

This commit is contained in:
lixianjing 2024-10-08 15:13:03 +08:00
parent 09975f4364
commit 533dcd7551
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
2024/10/08
* 完善链表(感谢兆坤提供补丁)
* 修复 conf_json_parse (感谢兆坤提供补丁)
2024/10/01
* 完善链表(感谢兆坤提供补丁)

View File

@ -321,6 +321,8 @@ static ret_t conf_json_parse_value(json_parser_t* parser) {
parser->current = node;
}
parser->current->value_type = CONF_NODE_VALUE_NODE;
if (c == '[') {
parser->current->node_type = CONF_NODE_ARRAY;
return conf_json_parse_array(parser);