I get a Json response from upstream response as shown below.
{
"fieldone": {
"header": {
"requestId": "1234",
"applicationName": "office",
"status": "SUCCESS"
},
"lineLevel": [{
"ou": "1025854560",
"status": "REJECT"
}]
}
}
LineLevel field may or may not be part of JSON response every time.we may get or may not.when we were not getting it it was causing issue .to resolve it I have tried with @jsonIgnore at property level but its ignoring the field when we get that particular field as part of response.
Tried @JsonIgnoreProperties at class level but its causing issue when respective proeprty is not present in Json response
can any provide any pointers in resolving it.Irrespective of whether LineLevel property is present or not in Json response I should be go ahead with my process