Open asaeed opened 11 years ago
figured it out, and then noticed it's the very first issue raised on this lib... :| should have read prior issues more carefully.
use
char* json = aJson.print(root);
Serial.println(json);
free(json);
instead of
Serial.println(aJson.print(root));
hmm, keeping this issue half open - there is positvely a flaw in the documentation ;) thanks
Marcus
I have the same issue... 15 loop and than Serial.println(json) write nothing... :o/
Of course, the operation "free(json);" solve the problem. Thx ;o)
Thanks asaeed saving my ass here
Please update the aJson.print() examples in the README!
I found that when I try to print the JSON string, there's a memory leak. Not sure if it's related to the other issues with memory leak. Try running the following sketch:
I'm going to see if i can find a fix but thought I'd post to let you know. If anyone can recommend a clean fix, i'm all ears!