Skip to content

Fix for map[interface{}]interface{} to JSON conversion#87

Merged
hanzei merged 4 commits into
stretchr:masterfrom
geseq:map-interface-interface
Feb 11, 2019
Merged

Fix for map[interface{}]interface{} to JSON conversion#87
hanzei merged 4 commits into
stretchr:masterfrom
geseq:map-interface-interface

Conversation

@geseq

@geseq geseq commented Feb 6, 2019

Copy link
Copy Markdown
Collaborator

If map[interface{}]interface{} end up within the Map, JSON() and MustJSON() fail even if the data is valid. Added methods to cleanup the data before converting to JSON.

@geseq

geseq commented Feb 6, 2019

Copy link
Copy Markdown
Collaborator Author

@hanzei Do you know what's causing the build to fail?

@hanzei

hanzei commented Feb 6, 2019

Copy link
Copy Markdown
Collaborator

Your code isn't properly formatted. You can locally check this via task lint.

@geseq

geseq commented Feb 6, 2019

Copy link
Copy Markdown
Collaborator Author

Right. Fixed.

@hanzei hanzei self-assigned this Feb 6, 2019
@hanzei hanzei self-requested a review February 6, 2019 16:04
@hanzei hanzei added this to the v0.2 milestone Feb 6, 2019

@hanzei hanzei left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hanzei hanzei merged commit c61a9df into stretchr:master Feb 11, 2019
@geseq geseq deleted the map-interface-interface branch July 7, 2021 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants