Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not an Issue #627

Open
toutant opened this issue Nov 20, 2021 · 1 comment
Open

Not an Issue #627

toutant opened this issue Nov 20, 2021 · 1 comment

Comments

@toutant
Copy link

toutant commented Nov 20, 2021

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}...]

@Alanscut
Copy link
Collaborator

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants