From a16a35fef421f010d7abc92a9ff0697d554d58f5 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Mon, 1 Feb 2016 00:14:29 -0500 Subject: [PATCH] json-input iterate --- c/input/lrec_reader_mmap_json.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/c/input/lrec_reader_mmap_json.c b/c/input/lrec_reader_mmap_json.c index e5bc98536..cc024e7f7 100644 --- a/c/input/lrec_reader_mmap_json.c +++ b/c/input/lrec_reader_mmap_json.c @@ -103,6 +103,19 @@ static void lrec_reader_mmap_json_sof(void* pvstate, void* pvhandle) { } sllv_append(pstate->parsed_top_level_jsons, parsed_top_level_json); + // xxx + //switch(parsed_top_level_json->type) { + //case json_array: + // for each { + // validate & add it + // } + // break; + //case json_object: + // validate & add it + // break; + //default: + // break; + //} if (item_start == NULL) break;