Skip to content

Tags: cloudfoundry/jsonry

Tags

v1.1.4

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
chore: add Go 1.19 to test matrix (#58)

As the main consumer is the CF CLI, we should still test against
unsupported versions of Go as the CF CLI is often built with old
versions

v1.1.3

chore: test against supported Go versions

v1.1.2

fix: map keys being string type definitions

Co-authored-by: Marcela Campo <mcampo@pivotal.io>

v1.1.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: unmarshal null into a struct (#15)

Fixes #14

v1.1.0

fix: clarify behavior of empty vs nil slices

v1.0.2

fix(omitempty): must omit empty slices

The `omitempty` tag was omitting `nil` slices but not slices that were
allocated but had length zero. This has been fixes for consistency with
json.Marshal. Also empty structs are no longer omitted for consistency
with json.Marhsal.

v1.0.1

Unmarshal `null` should be have like json.Unmarshal

There's a subtle behavior in json.Unmarshal that needs to be captured.
When unmashaling `null` it:
- basic type - leaves existing value
- pointer - overwrites with nil
- interface{} - overwrites with nil

Current behavour is incorrect because it returns an error, and the aim
should be to behave in the same way as json.Unmarshal

v1.0.0

Docs should point to pkg.go and not godoc