Hello,
I had been using jsmn.h lib for JSON parser but I changed the library with json.h library in my project. I wrote code;
jsonParser parser; jsonObj object; object = json_parser_init(&parser, g_clogData); rValue = (char*)malloc(128); memset(rValue, NULL, sizeof(rValue)); rValue = json_object_get_string(&parser, object, "IR", rValue); json_parser_deinit(&parser); free(rValue);
It works but after 5-6 times my code doesn't work anymore because of memory fault. I don't understand which one causes memory problem? Is json.h library is stable about memory usage?
Turan