How to consume fields named as restricted Java keywords with Quarkus Reactive Rest Client? #30693
-
I'm trying to use the Reactive Rest Client in Quarkus to fetch some data from an external API. However, in the JSON response of this API, one of the fields is named 'long' (i.e. longitude). I obviously can't create a Java object with a field named 'long' to use as the return type of an endpoint in my REST client, and I can't find an easy way around this. Any help would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
/cc @Sgitario (rest-client), @cescoffier (rest-client), @geoand (rest-client) |
Beta Was this translation helpful? Give feedback.
-
If you use |
Beta Was this translation helpful? Give feedback.
If you use
quarkus-rest-client-reactive-jackson
, then you can use@JsonProperty("long")
on the field of the POJO in question