summaryrefslogtreecommitdiff
path: root/src/exporter
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-09-05 16:16:44 +0800
committerchenzizhan <[email protected]>2023-09-05 16:16:44 +0800
commit04e69f9d4004ed32a7740ee75abab8dffc8b6e63 (patch)
treea6d0f27bbdb292e9ba99d1348fb3f621795eb747 /src/exporter
parent2aeda94a7c2e459718293776cb64da4ad554c671 (diff)
test json_writer
Diffstat (limited to 'src/exporter')
-rw-r--r--src/exporter/cjson_exporter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exporter/cjson_exporter.c b/src/exporter/cjson_exporter.c
index 6639d8f..856c24d 100644
--- a/src/exporter/cjson_exporter.c
+++ b/src/exporter/cjson_exporter.c
@@ -517,7 +517,7 @@ char *fieldstat_json_exporter_export(const struct fieldstat_json_exporter *expor
int buf_len = 4096;
char *cjson_str_arr = (char *)malloc(buf_len);
- // cjson is so slow, so we construct the json array manually
+ // cjson is so slow, so we construct the json array manually, the reason why we don't use json_writer is simply because I wrote this before implementing json_writer
int used_len = add_object_to_json_array_start(cjson_str_arr, buf_len);
for (int i = 0; i < n_pair; i++) {
used_len = add_object_to_json_array(&cjson_str_arr, &buf_len, used_len, str_arr[i]);