11 Mar

Adding JSON 5 to json.h

I’ve added JSON 5 support to my json.h library.

For those not in the know, JSON 5 (http://json5.org/) is a modern update to the JSON standard, including some cool features like unquoted keys, single quoted keys and strings, hexdecimal numbers, Infinity and NaN numbers, and c style comments!

As is sticking with the design of my lib – each of the features can be turned on individually if you don’t want the full shebang, or just add json_parse_flags_allow_json5 to enable the entire feature set.

The GitHub pull request brings in the functionality, and it is merged into master too!