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

[Feature Request]: Support to rename fields #45

Open
thomasguo opened this issue Jun 16, 2017 · 2 comments
Open

[Feature Request]: Support to rename fields #45

thomasguo opened this issue Jun 16, 2017 · 2 comments

Comments

@thomasguo
Copy link

thomasguo commented Jun 16, 2017

Hi,

It is common that sometimes output json format requires different field names from POJO fields. So I think it would be nice if developers could rename field name(s) when serializing POJO to json.

Thanks for your great work!

@monitorjbl
Copy link
Owner

What would that look like? Just an option like .rename(field, name) or did you have something else in mind?

@thomasguo
Copy link
Author

thomasguo commented Jun 16, 2017

Yes, that option looks good. Maybe something like .rename(field1, name1, field2, name2 ...) , which could specify multiple renamed fields.

@monitorjbl monitorjbl changed the title [Feture Request]: Support to rename fields [Feature Request]: Support to rename fields Jun 20, 2017
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

2 participants