Includes a usage example and a small test suite.
It supports, in addition to strict JSON: trailing commas, single-quote strings, and single/multi-line comments (C/C++-style).
To use in your mod, just generate the prefixes, copy over the generated/ZJSON folder, and add #include "ZJSON/Include.zs" to your main ZScript file.
Get it from GitHub
Generating Prefixes:
Run generate.sh [your prefix] on linux/wsl/msys/cygwin. The prefixed files will be in the generated folder.
How to Use:
Call JSON.parse with a string that contains JSON text, it will return either a JsonElement in case of success, or a JsonError in case of failure. Call JsonElement::serialize to generate JSON back from a JsonElement.
Types:
Spoiler: