mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Extract json parser functions from class
Signed-off-by: Michael Okoko <okokomichaels@outlook.com>
This commit is contained in:
committed by
Sergei Petrunia
parent
6bc2df5fa4
commit
fb2edab3eb
@@ -283,13 +283,13 @@ int json_key_matches(json_engine_t *je, json_string_t *k);
|
||||
int json_read_value(json_engine_t *j);
|
||||
|
||||
/*
|
||||
* smart_read_value() reads parses a scalar value and value length from the json engine,
|
||||
* json_smart_read_value() reads parses a scalar value and value length from the json engine,
|
||||
* and copies them into `value` and `value_length` respectively.
|
||||
* It should only be called when the json_engine state is JST_VALUE.
|
||||
* If it encounters a non-scalar value (say object or array) before getting to value_len,
|
||||
* such value is also read and copied into value.
|
||||
*/
|
||||
enum json_types smart_read_value(json_engine_t *je, const char **value, int *value_len);
|
||||
enum json_types json_smart_read_value(json_engine_t *je, const char **value, int *value_len);
|
||||
|
||||
/*
|
||||
json_skip_key() makes parser skip the content of the current
|
||||
|
Reference in New Issue
Block a user