Creating Java Object with reserved keywords as variable name for Json
If you use GSON for parsing you can name your members as you want and annotate them for mapping.
@SerializedName("class")
private String classCode;
@SerializedName("class")
private String classCode;
@JsonProperty
annotation..@JsonProperty("class")
private String classCode
;
Hope this helps :)
Python Basics How to check the version of Python interpreter mac terminal
No comments:
Post a Comment