2 * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
4 * Jansson is free software; you can redistribute it and/or modify
5 * it under the terms of the MIT license. See LICENSE for details.
11 int main(int argc, char *argv[])
17 fprintf(stderr, "usage: %s\n", argv[0]);
21 json = json_loadf(stdin, &error);
23 fprintf(stderr, "%d\n%s\n", error.line, error.text);
27 /* loadf_dumpf indents, others don't, so dumping with and without
28 indenting is tested */
29 json_dumpf(json, stdout, JSON_INDENT(4));