Releases: hjson/hjson-cpp
Releases · hjson/hjson-cpp
1.7
2.5
2.4.1
2.4
2.3
Fixes problems with values and/or closing brackets ending up inside comments, even when the tree was unmarshalled from a document.
It is still possible to get this problem when programmatically setting comments.
If DecoderOptions::whitespaceAsComments is set to true, comments now also include trailing whitespace after quoteless strings.
2.2
Changed behavior:
- UnmarshalFromFile() will now ignore the last line feed in a file if the file ends with a comment. Before this change, a read-write cycle of a file with comments would always add one more line feed at the end of the file if the file ended with a comment.
- The output from Merge() of two maps now uses the key order from the second Hjson::Value argument because the second argument is typically from an input file written by a user, and we don't want to keep changing the order that the user had decided.
Bug fixes:
- Lower (second level or deeper) level maps now keep their comments in the output from Merge().
- Value::clone() now keep all comments.
2.1
2.0
Major release containing several breaking changes.
Biggest change: can now read and write comments.
- enum class for Hjson::Value types
- changed default options
- assignment and arithmetic operators for all primitive C++ types
- read and write comments
- convenience file functions
- MarshalWithOptions() replaced by Marshal() overload
- DefaultOptions() replaced by brace-or-equal-initializers in EncoderOptions
1.6.1
All links changed from hjson.org to hjson.github.io.