MCPcopy Create free account
hub / github.com/MariaDB/server / json_get_object_key

Function json_get_object_key

strings/json_lib.c:2203–2223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2201}
2202
2203enum json_types json_get_object_key(const char *js, const char *js_end,
2204 const char *key, const char **value,
2205 int *value_len)
2206{
2207 json_engine_t je;
2208 enum json_types return_value;
2209 MEM_ROOT current_mem_root;
2210
2211 init_alloc_root(PSI_INSTRUMENT_MEM, &current_mem_root,
2212 BLOCK_SIZE_JSON_DYN_ARRAY, 0, MYF(0));
2213
2214 mem_root_dynamic_array_init(&current_mem_root, PSI_INSTRUMENT_MEM,
2215 &je.stack, sizeof(int), NULL,
2216 JSON_DEPTH_DEFAULT, JSON_DEPTH_INC, MYF(0));
2217 return_value= json_get_object_key_int(&je, js, js_end, key, value, value_len);
2218
2219 free_root(&current_mem_root, MYF(0));
2220
2221 return return_value;
2222
2223}
2224
2225
2226enum json_types json_get_object_nkey(const char *js __attribute__((unused)),

Callers 8

get_dataFunction · 0.85
get_versionFunction · 0.85
get_key_dataFunction · 0.85
check_versionMethod · 0.85
get_authMethod · 0.85
get_valueMethod · 0.85
set_valueMethod · 0.85
do_jsonFunction · 0.85

Calls 4

init_alloc_rootFunction · 0.85
json_get_object_key_intFunction · 0.85
free_rootFunction · 0.85

Tested by

no test coverage detected