summaryrefslogtreecommitdiff
path: root/include/json_lib.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2018-09-11 14:37:45 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2018-09-11 14:37:45 +0400
commitc8bb43a9385cdb7a27f0702742a8d1e08a85befd (patch)
treef4375293244135af1f4fd9cfcdbf30f1961749fb /include/json_lib.h
parent4d9ec7cb6c83c571115bde59d72f02b494764755 (diff)
downloadmariadb-git-c8bb43a9385cdb7a27f0702742a8d1e08a85befd.tar.gz
MDEV-17121 JSON_ARRAY_APPEND.
Extra comma added to the result when an json array is empty.
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
/*