You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
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?
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.
Activity
fang-tech commentedon Feb 10, 2026
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?
KerwinAusten commentedon Apr 15, 2026
@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.
Antediluvian commentedon May 17, 2026
I honestly don’t see much justification for continuing to use Jackson 2 after upgrading to Spring Boot 4.
xuchaoguo1983 commentedon Oct 1, 2026
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/@JsonDeserializetotools.jackson.databind.annotation.agentscope-extensions-aguiannotatesMessageContentwith the Jackson 2com.fasterxml.jackson.databind.annotation.JsonSerialize(MessageContentSerializer), so on Spring Boot 4 the defaultJsonMapperignores it. WritingAguiMessage.userMessage("u1", "hi")with it gives"content": {"value": "hi"}plus derived boolean properties (such asuserMessage/assistantMessage) instead of the AG-UI wire format"content": "hi". No error is raised, the output is just not protocol-conformant. Reproduced withtools.jackson.databind.json.JsonMapper.builder().build().valueToTree(message)on 2.0.4-SNAPSHOT.