]>
git.ipfire.org Git - thirdparty/hostap.git/blob - src/utils/json.h
2 * JavaScript Object Notation (JSON) parser (RFC7159)
3 * Copyright (c) 2017, Qualcomm Atheros, Inc.
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
22 enum json_parsing_state
{
31 struct json_token
*parent
, *child
, *sibling
;
34 void json_escape_string(char *txt
, size_t maxlen
, const char *data
, size_t len
);
35 struct json_token
* json_parse(const char *data
, size_t data_len
);
36 void json_free(struct json_token
*json
);
37 struct json_token
* json_get_member(struct json_token
*json
, const char *name
);
38 struct wpabuf
* json_get_member_base64url(struct json_token
*json
,
40 void json_print_tree(struct json_token
*root
, char *buf
, size_t buflen
);