Serialization of arrays in JSON format

This commit is contained in:
Alfredo Cardigliano
2019-07-22 17:24:04 +02:00
parent 6d00b59bb8
commit b13780c6e0
2 changed files with 66 additions and 28 deletions
+5
View File
@@ -1276,9 +1276,14 @@ typedef enum {
ndpi_serialization_string_string,
} ndpi_serialization_element_type;
#define NDPI_SERIALIZER_STATUS_COMMA (1 << 0)
#define NDPI_SERIALIZER_STATUS_ARRAY (1 << 1)
#define NDPI_SERIALIZER_STATUS_EOR (1 << 2)
typedef struct {
u_int32_t buffer_size, size_used;
ndpi_serialization_format fmt;
u_int32_t status;
u_int8_t *buffer;
char *json_buffer;
} ndpi_serializer;