summaryrefslogtreecommitdiff
path: root/src/utils
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/utils
parent2aeda94a7c2e459718293776cb64da4ad554c671 (diff)
test json_writer
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/very_fast_json_writer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/very_fast_json_writer.h b/src/utils/very_fast_json_writer.h
index deee1a6..ec7b858 100644
--- a/src/utils/very_fast_json_writer.h
+++ b/src/utils/very_fast_json_writer.h
@@ -12,6 +12,9 @@ struct json_writer;
struct json_writer *json_writer_init();
void json_writer_start_map(struct json_writer *writer); // {
void json_writer_end_map(struct json_writer *writer); // }
+void json_writer_array_start(struct json_writer *writer); // [
+void json_writer_array_end(struct json_writer *writer); // ]
+
void json_writer_str_field(struct json_writer *writer, const char *key, const char *value, size_t str_len);
void json_writer_int_field(struct json_writer *writer, const char *key, int value);
void json_writer_double_field(struct json_writer *writer, const char *key, double value);