Breaking change: comment reading is no longer default for glz::read_json
Important
Previously, JSONC style comments were automatically handled in glz::read_json. But, this was inconsistent with writing JSON and added overhead for users who don't require JSONC support. It also is outside the JSON specification. For these reasons the default behavior no longer accepts JSONC comments, but you can still opt-in to this behavior.
glz::read_jsonchas been added, which pairs withglz::write_jsonc.- The compile time option
commentscan be set to true for reading JSONC style comments, previously this option only worked for writing out comments.glz::read<glz::opts{.comments = true}>(...)
Full Changelog: v2.6.9...v2.7.0