[PATCH v2 4/5] json: restrict json_iter_{parse,next} to objects/arrays