diff options
author | David Lamparter <equinox@diac24.net> | 2013-03-25 23:29:15 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2013-03-25 23:29:15 +0100 |
commit | ac8beb0cb06e8aef35d9cfa134111e5c6ae09935 (patch) | |
tree | 3c9b6aba5fda143ad9aee2c0d36976d15c1540f5 /cethcan/http.c | |
parent | a69a211a4a95e5c4ac0055a8f2de8ec1c56a7d1a (diff) |
cethcan: json output
Diffstat (limited to 'cethcan/http.c')
-rw-r--r-- | cethcan/http.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cethcan/http.c b/cethcan/http.c index 907ec08..e5f7ddb 100644 --- a/cethcan/http.c +++ b/cethcan/http.c @@ -19,6 +19,7 @@ static void http_json_basic(struct evhttp_request *req, void *arg) evhttp_add_header(outhdr, "Content-Type", "text/plain; charset=utf-8"); json_t *jsout = json_object(); + can_json(jsout, JSON_NORMAL); json_dump_callback(jsout, evb_json_add, out, JSON_SORT_KEYS | JSON_INDENT(4)); evhttp_send_reply(req, 200, "OK", out); evbuffer_free(out); |