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 :)
My Attempt to learn AI GPT Generative Pretrained Transformer Created by Google in 2017 with the publication of the paper "Attention ...
No comments:
Post a Comment