#include "git-compat-util.h"
#include "json-writer.h"
void jw_init(struct json_writer *jw)
{ … }
void jw_release(struct json_writer *jw)
{ … }
static void append_quoted_string(struct strbuf *out, const char *in)
{ … }
static void indent_pretty(struct json_writer *jw)
{ … }
static void begin(struct json_writer *jw, char ch_open, int pretty)
{ … }
static void assert_in_object(const struct json_writer *jw, const char *key)
{ … }
static void assert_in_array(const struct json_writer *jw)
{ … }
static void maybe_add_comma(struct json_writer *jw)
{ … }
static void fmt_double(struct json_writer *jw, int precision,
double value)
{ … }
static void object_common(struct json_writer *jw, const char *key)
{ … }
static void array_common(struct json_writer *jw)
{ … }
static void assert_is_terminated(const struct json_writer *jw)
{ … }
void jw_object_begin(struct json_writer *jw, int pretty)
{ … }
void jw_object_string(struct json_writer *jw, const char *key, const char *value)
{ … }
void jw_object_intmax(struct json_writer *jw, const char *key, intmax_t value)
{ … }
void jw_object_double(struct json_writer *jw, const char *key, int precision,
double value)
{ … }
void jw_object_true(struct json_writer *jw, const char *key)
{ … }
void jw_object_false(struct json_writer *jw, const char *key)
{ … }
void jw_object_bool(struct json_writer *jw, const char *key, int value)
{ … }
void jw_object_null(struct json_writer *jw, const char *key)
{ … }
static void increase_indent(struct strbuf *sb,
const struct json_writer *jw,
int indent)
{ … }
static void kill_indent(struct strbuf *sb,
const struct json_writer *jw)
{ … }
static void append_sub_jw(struct json_writer *jw,
const struct json_writer *value)
{ … }
void jw_object_sub_jw(struct json_writer *jw, const char *key,
const struct json_writer *value)
{ … }
void jw_object_inline_begin_object(struct json_writer *jw, const char *key)
{ … }
void jw_object_inline_begin_array(struct json_writer *jw, const char *key)
{ … }
void jw_array_begin(struct json_writer *jw, int pretty)
{ … }
void jw_array_string(struct json_writer *jw, const char *value)
{ … }
void jw_array_intmax(struct json_writer *jw, intmax_t value)
{ … }
void jw_array_double(struct json_writer *jw, int precision, double value)
{ … }
void jw_array_true(struct json_writer *jw)
{ … }
void jw_array_false(struct json_writer *jw)
{ … }
void jw_array_bool(struct json_writer *jw, int value)
{ … }
void jw_array_null(struct json_writer *jw)
{ … }
void jw_array_sub_jw(struct json_writer *jw, const struct json_writer *value)
{ … }
void jw_array_argc_argv(struct json_writer *jw, int argc, const char **argv)
{ … }
void jw_array_argv(struct json_writer *jw, const char **argv)
{ … }
void jw_array_inline_begin_object(struct json_writer *jw)
{ … }
void jw_array_inline_begin_array(struct json_writer *jw)
{ … }
int jw_is_terminated(const struct json_writer *jw)
{ … }
void jw_end(struct json_writer *jw)
{ … }