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

docs: how to release a json object in memory? #371

Closed
Fonger opened this issue Nov 26, 2016 · 4 comments
Closed

docs: how to release a json object in memory? #371

Fonger opened this issue Nov 26, 2016 · 4 comments

Comments

@Fonger
Copy link

Fonger commented Nov 26, 2016

If I have a huge json object and each json has reference to sub json object.
Is there a way to completly free the huge json object with all it's child json object?

@nlohmann
Copy link
Owner

What do you mean with "free"? Deallocate the memory?

@nlohmann
Copy link
Owner

nlohmann commented Dec 1, 2016

Inactive.

@nlohmann nlohmann closed this as completed Dec 1, 2016
@adrianrfreedman
Copy link

Hi there, if I'm reading lots of JSON objects does the memory need to be deallocated?

@nlohmann
Copy link
Owner

No, the memory is managed by the internal data structures, which base on std::vector, std::map, and std::string.

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

No branches or pull requests

3 participants