This example explores the use of JSON object for parsing and building JSON files. See the JSON application discussion for more information.
- application code must include header files:
- application compilation must include source code from the directories:
- ../../library
- ../../utilities
- ../../json
- application compilation must define macros:
The compiled example will execute the following cases. Run the application with no arguments for application usage.
- case 1: Display application information. (type names, type sizes and defined macros)
- case 2: Illustrate a simple case of reading and parsing a JSON file.
- case 3: Illustrate finding keys in the tree of JSON values.
- case 4: Illustrate walking a sub-tree and the siblings of a sub-root explicitly with the iterator.
- case 5: Illustrate writing a JSON file from a value tree of parsed JSON values.
- case 6: Illustrate building a JSON file.