/* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "str.h"
#include "strescape.h"
#include "ostream.h"
#include "json-parser.h"
#include "doveadm.h"
#include "doveadm-server.h"
#include "doveadm-print.h"
#include "doveadm-print-private.h"
#include "client-connection.h"
struct doveadm_print_json_context {
bool first_row;
bool in_stream;
bool flushed;
};
static void doveadm_print_json_flush_internal(void);
static void doveadm_print_json_init(void)
{
}
static void
{
ctx.header_count++;
}
static void
{
// get header name
if (ctx.header_idx == 0) {
} else {
}
} else {
}
}
static void
doveadm_print_json_value_footer(void) {
ctx.header_idx = 0;
}
}
{
} else {
}
}
static void
{
}
if (size == 0) {
return;
}
}
static void doveadm_print_json_flush_internal(void)
{
}
static void doveadm_print_json_flush(void)
{
return;
else {
}
}
static void doveadm_print_json_deinit(void)
{
}
"json",
};