cJSON icon indicating copy to clipboard operation
cJSON copied to clipboard

Not an Issue

Open toutant opened this issue 3 years ago • 1 comments

Fantastic - You created a bear minimum feature set - that works great. Thank you the speed of your code is crazy fast

I would like to ask you about CJSON_NESTING_LIMIT

I currently have been using jsoncons::json to read and create large arrays of data as json 5000 records is usually the max required - would setting NESTING_LIMIT to 5000 work to allow for 5000 records - array of objects rows[{rec},{rec}...]

toutant avatar Nov 20 '21 06:11 toutant

@toutant there is no need to set CJSON_NESTING_LIMIT 5000 for your case, CJSON_NESTING_LIMIT indicates the maximum number of nesting layers. For a json like this: [{"a": 1},{"b": 1},{"c": 1},{"d": 1},{"e": 1}], it's nested layers is only 2.

Alanscut avatar Jan 19 '22 06:01 Alanscut