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

Force lower camel case fields when using JSON #563

Closed
MungoRae opened this issue May 4, 2016 · 2 comments
Closed

Force lower camel case fields when using JSON #563

MungoRae opened this issue May 4, 2016 · 2 comments
Milestone

Comments

@MungoRae
Copy link
Contributor

MungoRae commented May 4, 2016

Is it currently possible to have fields generated from JSON be lower camel case?

For example if I have JSON:

{
  "Property1" : "Any Value",
  "PropertyTwo" : "any value2",
  "property3" : "Value"
}

I want the class to look like

public class Clazz {
    private String property1;
    private String propertyTwo;
    private String property3;
}

At the moment it creates the fields as Property1 which goes against common code style.

Thanks

@joelittlejohn
Copy link
Owner

This is a regression, we should be generating lower camel case. Will definitely look to fix this. Thanks for raising it!

@joelittlejohn
Copy link
Owner

Closed by #565

@joelittlejohn joelittlejohn changed the title Lower camel case fields when using JSON Force lower camel case fields when using JSON May 11, 2016
@joelittlejohn joelittlejohn added this to the 0.4.23 milestone May 11, 2016
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