Get rid of root node to simplify. Walk the tree if you need it.

This commit is contained in:
Eric Fischer
2014-02-07 16:56:38 -08:00
parent e99c037be3
commit 0fd66048c8
2 changed files with 6 additions and 9 deletions
-3
View File
@@ -10,7 +10,6 @@ json_pull *json_begin(int (*read)(struct json_pull *), int (*peek)(struct json_p
j->error = NULL;
j->line = 1;
j->root = NULL;
j->container = NULL;
j->read = read;
@@ -123,8 +122,6 @@ static json_object *add_object(json_pull *j, json_type type) {
return NULL;
}
}
} else {
j->root = o;
}
return o;