Skip to content

Comments

Ignore omitempty in json tags when interpreting fieldnames#1

Open
jkomoros wants to merge 1 commit intobrianloveswords:masterfrom
jkomoros:master
Open

Ignore omitempty in json tags when interpreting fieldnames#1
jkomoros wants to merge 1 commit intobrianloveswords:masterfrom
jkomoros:master

Conversation

@jkomoros
Copy link

I was running into an issue when using the omitempty directive in json field tags to suppress fields on my struct that should be omitted when empty.

This isn't elegant, but it did fix the problem for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant