I have JSON fields defined as
@JsonProperty
private RestRingAttributeName name;
@JsonProperty
private String value;
in rest resource file.
Output I get is like,
[
{
"name": "supplementalSystemId",
"value": "FDFR_1485166326176"
}
]
Is there any way like json annotation or something to get output as follows.
[
{
"supplementalSystemId": "FDFR_1485166326176",
}
]
And not show name
and value
.
I am using jackson JSON.