Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
The JSON Parser and Builder

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:
    • ../../json/json.h
  • application compilation must include source code from the directories:
    • ../../library
    • ../../utilities
    • ../../json
  • application compilation must define macros:
    • none

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.
APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.