You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've run into this situation in various projects and I was wondering if there's a way to retrieve nested properties without using nested objects.
The problem starts when I'm provided with a web api which gives a non-optimal response structure and neither is there a possibility to optimize it, for example something like the following JSON:
Yeah, as awful and ilogical as it seems, I've had to deal with those kind of responses which make me create unnecesary nested objects just to extract that message.
What I'd like to be able to do is something like this:
@JsonObject
public class Result {
@JsonField(name = "result/errors[0]/message")
protected String error;
}
Please consider adding this feature, it'd be awesome to be able to write clean code like that.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I've run into this situation in various projects and I was wondering if there's a way to retrieve nested properties without using nested objects.
The problem starts when I'm provided with a web api which gives a non-optimal response structure and neither is there a possibility to optimize it, for example something like the following JSON:
Yeah, as awful and ilogical as it seems, I've had to deal with those kind of responses which make me create unnecesary nested objects just to extract that message.
What I'd like to be able to do is something like this:
Please consider adding this feature, it'd be awesome to be able to write clean code like that.
Thanks!
The text was updated successfully, but these errors were encountered: