diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2018-09-11 14:37:45 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2018-09-11 14:37:45 +0400 |
commit | c8bb43a9385cdb7a27f0702742a8d1e08a85befd (patch) | |
tree | f4375293244135af1f4fd9cfcdbf30f1961749fb /include/json_lib.h | |
parent | 4d9ec7cb6c83c571115bde59d72f02b494764755 (diff) | |
download | mariadb-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.h | 6 |
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 /* |