Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting different JSON tag #39

Open
odinmarks1988 opened this issue Nov 17, 2021 · 0 comments
Open

Supporting different JSON tag #39

odinmarks1988 opened this issue Nov 17, 2021 · 0 comments

Comments

@odinmarks1988
Copy link

odinmarks1988 commented Nov 17, 2021

Hi

Is it possible to support custom JSON tag for binding data? As sometime for the same data, we will want to support snake case and camel case for the same field.

Example:

type Person struct {
	DateOfBirth string `json:"dateOfBirth" sjson:"date_of_birth"`
}
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

No branches or pull requests

1 participant