planarbot/echojson.c

13 lines
208 B
C
Raw Normal View History

2022-11-08 23:31:00 +01:00
#include <stdio.h>
#include "json.h"
int main(int argc, char **argv) {
FILE *fp = fopen(argv[1], "r");
Json * json = json_parse(fp);
json_print(json, stdout);
json_free(json);
fclose(fp);
return 0;
}