-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .bodyAsJson() to generic response #983
Comments
@reta What's the magical combination of |
@dblock there are few options, may be the easiest one is to convert it to a map:
|
As a follow up, we could support "generic" JSON structures, like:
(depending which mapper is configured)
|
I like the second version a lot more.
Any reason not to expose .bodyAsJson() implemented as the above that returns |
So at the moment, we have 2 implementations of
The |
Is your feature request related to a problem?
Given
We'd like to extract the
resource_already_exists_exception
part, ie. write something like this:What solution would you like?
Implement
Body#bodyAsJson()
or.json()
.What alternatives have you considered?
Deal with mappers & friends.
The text was updated successfully, but these errors were encountered: