How do i split the CJSON parsing or cJSON_Print

204 Views Asked by At

I have checked the documentation: https://github.com/DaveGamble/cJSON#parsing-json and https://github.com/DaveGamble/cJSON#printing-json.

My question is I have a function void foo (char *JSON); that can only accept size_t JSON string representation at a time. The JSON String is larger than size_t. Either I can parse the full JSON and print it in size_t chunks or I would have to split the JSON string into size_t and sanitize it to retain it in well-formed JSON format.

Is there a CJSON API that could help me in any of the scenarios?

0

There are 0 best solutions below