Json: docs: how to release a json object in memory?

Created on 26 Nov 2016  路  4Comments  路  Source: nlohmann/json

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?

question

Most helpful comment

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

All 4 comments

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

Inactive.

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

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

Was this page helpful?
0 / 5 - 0 ratings