summaryrefslogtreecommitdiff
path: root/include/json_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/json_lib.h')
-rw-r--r--include/json_lib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/json_lib.h b/include/json_lib.h
index 567b04dbdc0..e9c10906502 100644
--- a/include/json_lib.h
+++ b/include/json_lib.h
@@ -319,6 +319,12 @@ int json_skip_to_level(json_engine_t *j, int level);
json_skip_to_level((json_engine), (json_engine)->stack_p)
+/*
+ works as json_skip_level() but also counts items on the current
+ level skipped.
+*/
+int json_skip_level_and_count(json_engine_t *j, int *n_items_skipped);
+
#define json_skip_array_item json_skip_key
/*