Skip to content

v4.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 26 Sep 23:31
· 9 commits to master since this release
905a757

Retain key order in objects for UnmarshalJSON() and MarshalJSON() so that implementations of ordered maps can work.

New interface ElemTyper allows custom containers implementing UnmarshalJSON() to let hjson.Unmarshal() know what type of elements they will contain, so that hjson.Unmarshal() can unmarshal numbers, booleans and null into strings if needed by the custom container.

Tested on Go 1.11 - 1.19