Response looks like this.
"foo": {
"bar": [
{
"01": "100,000.25"
},
{
"02": "80,000.40"
},
{
"03": "120,000.60"
},
{
"04": "70,000.35"
},
{
"05": "110,000.55"
},
{
"06": "130,000"
},
{
"07": "90,000.30"
},
{
"08": "70,000.25"
},
{
"09": "110,000.70"
},
{
"10": "120,000.55"
},
{
"11": "140,000.40"
},
{
"12": "110,000.50"
}
],
}
I want parsing this data but, I can’t parsing this data
The DTO is as follows.
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public static class foo {
@JsonProperty("bar")
private List<Bar> barList;
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public static class Bar {
@JsonProperty("01")
private String january;
@JsonProperty("02")
private String february;
@JsonProperty("03")
private String march;
@JsonProperty("04")
private String april;
@JsonProperty("05")
private String may;
@JsonProperty("06")
private String june;
@JsonProperty("07")
private String july;
@JsonProperty("08")
private String august;
@JsonProperty("09")
private String september;
@JsonProperty("10")
private String october;
@JsonProperty("11")
private String november;
@JsonProperty("12")
private String december;
}
}
i want parse this data with openfeign
And Result
Bar(january=100,000.10, february=null, march=null, april=null, may=null, june=null, july=null, august=null, september=null, october=null, november=null, december=null)
New contributor
손록형 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.