JsonToJava icon indicating copy to clipboard operation
JsonToJava copied to clipboard

code generation renames the reference variables, class names randomly

Open LOG-TAG opened this issue 11 years ago • 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!

LOG-TAG avatar Jul 08 '14 04:07 LOG-TAG