GH-1065 Fix Collection discovery in JsonMapper

Resolves #1065
This commit is contained in:
Oleg Zhurakousky
2023-08-30 15:22:52 +02:00
parent 8ab157de76
commit 9f04138e4f
3 changed files with 26 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ public abstract class JsonMapper {
public static boolean isJsonStringRepresentsCollection(Object value) {
boolean isJson = false;
if (value instanceof Iterable && !value.getClass().getPackage().getName().startsWith("reactor.util.function")) {
if (value instanceof Collection && !value.getClass().getPackage().getName().startsWith("reactor.util.function")) {
return true;
}
if (value instanceof byte[]) {