Select one of the symbols to view example projects that use it.
 
Outline
#define JSON_H
json_token
json_escape_string(char *, size_t, const char *, size_t);
json_parse(const char *, size_t);
json_free(struct json_token *);
json_get_member(struct json_token *, const char *);
json_get_member_base64url(struct json_token *, const char *);
json_print_tree(struct json_token *, char *, size_t);
json_add_int(struct wpabuf *, const char *, int);
json_add_string(struct wpabuf *, const char *, const char *);
json_add_string_escape(struct wpabuf *, const char *, const void *, size_t);
json_add_base64url(struct wpabuf *, const char *, const void *, size_t);
json_start_object(struct wpabuf *, const char *);
json_end_object(struct wpabuf *);
json_start_array(struct wpabuf *, const char *);
json_end_array(struct wpabuf *);
json_value_sep(struct wpabuf *);
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/wpa_supplicant/src/utils/json.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * JavaScript Object Notation (JSON) parser (RFC7159) * Copyright (c) 2017, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. *//* ... */ #ifndef JSON_H #define JSON_H struct json_token { enum json_type { JSON_VALUE, JSON_OBJECT, JSON_ARRAY, JSON_STRING, JSON_NUMBER, JSON_BOOLEAN, JSON_NULL, }{ ... } type; enum json_parsing_state { JSON_EMPTY, JSON_STARTED, JSON_WAITING_VALUE, JSON_COMPLETED, }{ ... } state; char *name; char *string; int number; struct json_token *parent, *child, *sibling; }{ ... }; void json_escape_string(char *txt, size_t maxlen, const char *data, size_t len); struct json_token * json_parse(const char *data, size_t data_len); void json_free(struct json_token *json); struct json_token * json_get_member(struct json_token *json, const char *name); struct wpabuf * json_get_member_base64url(struct json_token *json, const char *name); void json_print_tree(struct json_token *root, char *buf, size_t buflen); void json_add_int(struct wpabuf *json, const char *name, int val); void json_add_string(struct wpabuf *json, const char *name, const char *val); int json_add_string_escape(struct wpabuf *json, const char *name, const void *val, size_t len); int json_add_base64url(struct wpabuf *json, const char *name, const void *val, size_t len); void json_start_object(struct wpabuf *json, const char *name); void json_end_object(struct wpabuf *json); void json_start_array(struct wpabuf *json, const char *name); void json_end_array(struct wpabuf *json); void json_value_sep(struct wpabuf *json); /* ... */ #endif /* JSON_H */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.