#ifndef __JSON__H
#define __JSON__H
-struct json_object;
-struct json_array;
-struct json_pair;
+
+#include "lib/output_buffer.h"
#define JSON_TYPE_STRING 0
#define JSON_TYPE_INTEGER 1
#define json_array_last_value_object(obj) \
(obj->values[obj->value_cnt - 1]->object)
-void json_print_object(struct json_object *obj);
+void json_print_object(struct json_object *obj, struct buf_output *out);
#endif