NetBurner 3.5.6
PDF Version |
This application demonstrates how to use the JSON Lexer classes ParsedJsonDataSet
and JsonRef
to create and access arrays containing sub-objects. The program creates a JSON array with 10 objects, each containing two key-value pairs, and then reads back the data to display it.
Application Name:** JsonArrayWithObjects
The program showcases the following JSON manipulation capabilities:
BuildJsonArray()
Creates a JSON array named "FirstArray" containing 10 objects. Each object has:
ShowObject(JsonRef element)
Displays the contents of a single object by printing its "a" and "b" values.
ReadJsonArrayWithObj()
Iterates through the "FirstArray" and displays each object's contents using the ShowObject()
function.
UserMain(void *pd)
Main entry point that:
The application creates a JSON structure similar to:
init.h
- System initializationjson_lexer.h
- JSON parsing and manipulation classesThe application automatically runs when started and will: