cJSON_AddStringToObject(jsonObject, it->getUserName().c_str(), it->getPermission().c_str()); cJSON_AddItemToArray(jsonArray, jsonObject);//cJSON_Delete(jsonObject);}char*cptrFormatted =cJSON_PrintUnformatted(jsonArray);stringjsonString = cptrFormatted;free(cptrFormatted); cJSON_Delete(...
cJSON *results = cJSON_CreateObject(); //Some functions perform operations on results, adding objects to it //Then I want to print the JSON object Serial.println("Before : " + String(ESP.getFreeHeap())); char *resultsCharArray = cJSON_PrintUnformatted(results); free(resultsCharArray);...