embedded-software
reusable software modules for embedded systems
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
json_parser.h
Go to the documentation of this file.
1 
13 #ifndef _JSON_PARSER_H_
14 #define _JSON_PARSER_H_
15 
16 #include <stdint.h>
17 
27 char* json_find_key(char *key, char *json);
28 
35 char* json_find_list_item(uint16_t number, char*json);
36 
49 void json_get_string(char* json, char* mystring);
50 
63 unsigned int json_get_int(char* json);
64 
65 
66 #endif /* _JSON_PARSER_H_ */
67 
char * json_find_list_item(uint16_t number, char *json)
for finding the nth list item in the json key
Definition: json_parser.c:86
void json_get_string(char *json, char *mystring)
This function gets the string associated with a list item from a JSON string.
Definition: json_parser.c:102
unsigned int json_get_int(char *json)
This function gets the integer associated with a list item from a JSON string.
Definition: json_parser.c:123
uint16_t number
Definition: json_parser.c:16
char * json
Definition: json_parser.c:14
char * mystring
Definition: json_parser.c:15
char * key
Definition: json_parser.c:13
char * json_find_key(char *key, char *json)
Parses a JSON string for the string pointed to by key.
Definition: json_parser.c:19