mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Add parser to read JSON array (of histograms) into string vector
Signed-off-by: Michael Okoko <okokomichaels@outlook.com>
This commit is contained in:
committed by
Sergei Petrunia
parent
524322ad3e
commit
6bc2df5fa4
@@ -1868,7 +1868,7 @@ int json_path_compare(const json_path_t *a, const json_path_t *b,
|
||||
}
|
||||
|
||||
|
||||
static enum json_types smart_read_value(json_engine_t *je,
|
||||
enum json_types smart_read_value(json_engine_t *je,
|
||||
const char **value, int *value_len)
|
||||
{
|
||||
if (json_read_value(je))
|
||||
@@ -1952,7 +1952,6 @@ err_return:
|
||||
return JSV_BAD_JSON;
|
||||
}
|
||||
|
||||
|
||||
/** Simple json lookup for a value by the key.
|
||||
|
||||
Expects JSON object.
|
||||
@@ -2029,6 +2028,7 @@ enum json_types json_get_object_nkey(const char *js __attribute__((unused)),
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** Check if json is valid (well-formed)
|
||||
|
||||
@retval 0 - success, json is well-formed
|
||||
|
Reference in New Issue
Block a user