Add a reader abstraction

This commit is contained in:
Eric Fischer
2014-02-06 19:22:37 -08:00
parent 979b9243d8
commit ed079e37a9
3 changed files with 45 additions and 35 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ void json_print(json_object *j, int depth) {
}
void process(FILE *f) {
json_pull *jp = json_begin(f);
json_pull *jp = json_begin_file(f);
json_object *j = NULL;
while ((j = json_parse(jp)) != NULL) {