-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Akshay Gupta opened SPR-16407 and commented
When using Spring Webflux's WebClient, it is not possible to deserialize a JSON array of integers using the bodyToFlux method. Spring returns an empty Flux. However, using bodyToMono to get a List<Integer> works and returns a Mono<List<Integer>> as expected.
I believe the problem lies in Jackson2Tokenizer's handling of this scenario. It returns an empty list of tokens. A variation of this issue was addressed in #20714. It addresses top-level scalar values returned as a JSON response. However, the fix for that still doesn't address the above scenario.
Original StackOverflow question
Affects: 5.0.3
Reference URL: https://github.com/Dolvic/spring-SPR-16407
Issue Links:
- Support top-level scalar values in Jackson2Tokenizer [SPR-16166] #20714 Support top-level scalar values in Jackson2Tokenizer
Referenced from: commits b474916