summaryrefslogtreecommitdiff
path: root/src/core/json_helpers.h
blob: 953e56f2efdbfbe7fc01952e0cd9c98ca06cee3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* BSD-2-Clause license
 * 
 * Copyright (c) 2018-2023 NST <www.newinfosec.ru>, sss <sss at dark-alexandr dot net>. 
 * 
 */

#pragma once

int64_t json_option_extract_int64(struct json_object_element_s *json_option);

bool json_option_extract_bool(struct json_object_element_s *json_option);

/* if out buffer is 0, caller must free memory */
char *json_option_extract_string(
    struct json_object_element_s *json_option, char *out);