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
WebClient bodyToFlux(String.class) for string list doesn't separate individual values #22662
Comments
What happens here is that decoding JSON as That's said, I am wondering if we could make easier the required steps required to parse Maybe we could make Another way to make this more flexible would be to leverage per usage hints but that would require passing hints to Any thoughts @rstoyanchev @bclozel @poutsma? |
This is stated in the docs. Note there is already some control. You can decode to I am not in favor of adding more options to codecs configuration. That's not necessarily making things simpler. |
Holy cow. This is a totally unexpected behavior... Good for you that is documented. Now bug becomes a feature |
Affects: 5.1.5.RELEASE
Attached demo project for reproducing
bug-demo.zip
spring boot version: spring boot 2.1.3
if I have json response like this : ["v1", "v2", "v3"]
doing:
webclient.get().retrive().bodyToFlux(String.class)
will emit "["v1", "v2","v3"]" as single signal instead of 3 different signals.
The text was updated successfully, but these errors were encountered: