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 infile outfile\n", argv[0]);
21 json = json_load_file(argv[1], &error);
23 fprintf(stderr, "%d\n%s\n", error.line, error.text);
27 json_dump_file(json, argv[2], 0);