Skip to content

[Feature]: Hope to support jackson3 #754

Open

Description

@ShidaYuumi

Developing projects with Spring Boot 4, where Spring Boot 4 has upgraded its dependency on Jackson from version 2 to 3. I currently need to use agent-scope-java in my project, but up to the latest version 1.0.8, it still uses Jackson 2 and does not provide support for Jackson 3. I hope support for Jackson 3 can be provided.

Image

Activity

  1. added
    enhancement
    on Feb 7, 2026
  2. fang-tech commented on Feb 10, 2026

    @fang-tech
    Collaborator

    In fact, jakson-core 3 and 2 use completely different package names, so their coexistence will not cause any conflicts. The annotation packages 2 and 3 are compatible. Did you encounter a conflict caused by this version when using Spring Boot 4?

  3. moved this from Backlog to In progress in AgentScope Javaon Mar 12, 2026
  4. KerwinAusten commented on Apr 15, 2026

    @KerwinAusten

    In fact, jakson-core 3 and 2 use completely different package names, so their coexistence will not cause any conflicts. The annotation packages 2 and 3 are compatible. Did you encounter a conflict caused by this version when using Spring Boot 4?

    @fang-tech Jackson is ok, but jsonschema-generator is not.

    The version 4.38.0 of jsonschema cannot coexist with version 5.0.0 when we choose to use jackson3.

  5. Antediluvian commented on May 17, 2026

    @Antediluvian

    I honestly don’t see much justification for continuing to use Jackson 2 after upgrading to Spring Boot 4.

  6. added
    area/core/agent
    on May 28, 2026
  7. xuchaoguo1983 commented on Oct 1, 2026

    @xuchaoguo1983

    Concrete data point for Spring Boot 4: the Jackson 2 core annotations (@JsonProperty, @JsonCreator) are shared, but the databind annotations are not — Jackson 3 moved @JsonSerialize / @JsonDeserialize to tools.jackson.databind.annotation. agentscope-extensions-agui annotates MessageContent with the Jackson 2 com.fasterxml.jackson.databind.annotation.JsonSerialize (MessageContentSerializer), so on Spring Boot 4 the default JsonMapper ignores it. Writing AguiMessage.userMessage("u1", "hi") with it gives "content": {"value": "hi"} plus derived boolean properties (such as userMessage / assistantMessage) instead of the AG-UI wire format "content": "hi". No error is raised, the output is just not protocol-conformant. Reproduced with tools.jackson.databind.json.JsonMapper.builder().build().valueToTree(message) on 2.0.4-SNAPSHOT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/core/agentenhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions