diff --git a/Project/applications/smartcities/json.c b/Project/applications/smartcities/json.c index 2564b95..6f091fd 100644 --- a/Project/applications/smartcities/json.c +++ b/Project/applications/smartcities/json.c @@ -34,7 +34,7 @@ char* prepare_json_register_statement(char* module_ID, uint8_t sensor_type) str_aux = join_strings(str_aux,str_aux2,length,observation_length,JOIN_FREE_MEM); length += observation_length; } - length--; //REMOVE LAST ',' + length--; json_statement = join_strings(str_aux,"]}",length,2,JOIN_NO_FREE); chHeapFree(str_aux); return json_statement;