Skip to content

Jackson ArrayNode cannot be cast to java.util.Collection in KotlinSerializationJsonHttpMessageConverter #34211

@zhangwei911

Description

@zhangwei911

While using kotlin-serialization-json-jvm:1.7.3 with com.fasterxml.jackson.core:jackson-datebind:2.15.3 in spring-web:5.3.39,
org.springframework.http.converter.json.KotlinSerializationJsonHttpMessageConverter.encode() will cause com.fasterxml.jackson.databind.node.ArrayNode cannot be cast to java.util.Collection in the line String json = this.json.encodeToString(serializer, object);.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions