Skip to content

Releases: hjson/hjson-cpp

2.2

14 Apr 16:44
Compare
Choose a tag to compare

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

17 Nov 19:48
Compare
Choose a tag to compare
2.1

Added Hjson::Value bracket operators for non-const char* to avoid overload ambiguity.

2.0

14 Nov 14:34
e4b0547
Compare
Choose a tag to compare
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

16 Sep 15:37
Compare
Choose a tag to compare

All links changed from hjson.org to hjson.github.io.

1.6

28 Aug 10:07
Compare
Choose a tag to compare
1.6

Added option omitRootBraces for MarshalWithOptions(). The default value is false, so the default behavior has not changed.

Fixed problem with insertion order being lost when cloning or merging values.

1.5

03 Jul 12:08
Compare
Choose a tag to compare
1.5

Added Cmake option HJSON_NUMBER_PARSER for choosing which number parsing method to use.

1.4.1

13 Feb 09:53
db4467e
Compare
Choose a tag to compare

More relevant message in syntax errors thrown for invalid syntax inside an element of a root object declared without tags.

1.4

18 Jan 14:18
Compare
Choose a tag to compare
1.4

Marshal() now includes a decimal point in the string representation of any number that is stored using a floating point representation (for example "1.0").

Added functions is_int64() and Unmarshal(const std::string&).

Added stream insertion operator for Hjson::Value.

1.3

20 Nov 14:03
c59ed18
Compare
Choose a tag to compare
1.3

Support for 64-bit precision integers.

Default installation folder for the lib file in POSIX is now /usr/local/lib instead of /usr/local/lib/hjson.

Added option preserveInsertionOrder for MarshalWithOptions(). The default value is false, but that might change to true in release 2.0.

1.2.1

14 Oct 15:43
Compare
Choose a tag to compare

Fix for reading invalid memory location when comparing two empty vectors or maps.