!117 merge master into master

删除print_array print_object深度限制

Created-by: mohaoyuan
Commit-by: mohaoyuan
Merged-by: openharmony_ci
Description: ### 相关的Issue

  
### 原因(目的、解决的问题等)


### 描述(做了什么,变更了什么)


### 测试用例(新增、改动、可能影响的功能)
    
    


See merge request: openharmony/third_party_cJSON!117
This commit is contained in:
openharmony_ci
2026-03-05 20:47:40 +08:00
-10
View File
@@ -1602,11 +1602,6 @@ static cJSON_bool print_array(const cJSON * const item, printbuffer * const outp
return false;
}
if (output_buffer->depth >= CJSON_NESTING_LIMIT)
{
return false; /* nesting is too deep */
}
/* Compose the output array. */
/* opening square bracket */
output_pointer = ensure(output_buffer, 1);
@@ -1787,11 +1782,6 @@ static cJSON_bool print_object(const cJSON * const item, printbuffer * const out
return false;
}
if (output_buffer->depth >= CJSON_NESTING_LIMIT)
{
return false; /* nesting is too deep */
}
/* Compose the output: */
length = (size_t) (output_buffer->format ? 2 : 1); /* fmt: {\n */
output_pointer = ensure(output_buffer, length + 1);