JSON Parser
Using json_init_obj initialize the json by giving json obj as an argument.
Parse the json input data in byte by byte.
This is a streaming JSON parser with the primary use case of low memory devices where even a medium sized JSON string can not
be processed.
Function |
Description |
|---|---|
rs_json_init_obj |
Function to initialize the JSON object |
rs_json_process_input_string |
Function to parse the JSON input data in byte by byte |
rs_json_output_to_string |
Function to generates the JSON string from the structure data according to the input string length |
rs_json_get_element_addr |
Function to extract pointer to an array element |
Using these ‘rs’ calls set the input required for the json file, call the function ‘rs_json_process_input’ it will parse the data in byte by byte and store in to structure.
Example Demo
Please refer below section,
JSON Parser Header Details
Documentation from the relevant header as follows:
Warning
doxygenfile: Cannot find file “rs_json.h