jonfhancock/JsonToJava

code generation renames the reference variables, class names randomly

Opened this issue · 0 comments

1>
{
"responseCode": "200",
"responseMessage": "OK"
}

private String mResponseMessage this should be responseCode. when we use GSON parsing it's really helpful.

2>
I also observed if the Json object prefix is { "Options" :{.....}} the class name changes from Options to Option.java !! it should be Options.java

3>
"doc_value": "a2" after code generation changes to String mDocValue; this is not good! we have to rename it again or we have to use @SerializedName("3") annotations!