diff options
| author | chenzizhan <[email protected]> | 2023-09-05 16:16:44 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-09-05 16:16:44 +0800 |
| commit | 04e69f9d4004ed32a7740ee75abab8dffc8b6e63 (patch) | |
| tree | a6d0f27bbdb292e9ba99d1348fb3f621795eb747 /src/utils | |
| parent | 2aeda94a7c2e459718293776cb64da4ad554c671 (diff) | |
test json_writer
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/very_fast_json_writer.h | 3 |
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); |
