JSON :
"ABCD": [
{
"xyz": 3,
"abc": 4,
"info": {
"MY_TITLE": "Hello World",
"MY_DESCRIPTION": "New to the world"
}
}
...similar sub parts
]
In the case above, since info
is another object in itself, the sub string
are in upper case. My mapping to these in java goes on as :
@JsonProperty("xyz")
private Integer xyz;
@JsonProperty("abc")
private Integer abc;
@JsonProperty("MY_TITLE")
private String myTitle;
@JsonProperty("MY_DESCRIPTION")
private Long myDescription;
Need some documents and practices over the JSON creation and mapping the same on the java.
Is the JSON field naming convention inappropriate?
OR/AND
- Is the
JsonProperty
mapping incorrect?