登录 注册

jackson-module-scala

去点 Star
开发者工具AI 模型与开发框架自动化与工作流 cborhacktoberfestjacksonjsonscalaserialization
508
Stars
140
Forks
23
Watchers
48
Open Issues
Apache-2.0
许可证
Scala
语言
2010-11-29
创建时间
2026-11-08
最近更新

项目能做什么

jackson-module-scala 解决了 Jackson 默认无法良好兼容 Scala 特有数据结构的问题。作为官方扩展模块,它为 Scala 提供序列化与反序列化支持,原生适配样例类(Case Classes)、Option、Tuple、集合(Seq/Map)及枚举等类型。支持 Scala 2 和 3,注册到 ObjectMapper 即可无缝处理 JSON、XML 等格式。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
![Build Status](https://github.com/FasterXML/jackson-module-scala/actions/workflows/ci.yml/badge.svg?branch=3.x)
![Maven Central Version](https://img.shields.io/maven-central/v/tools.jackson.module/jackson-module-scala_2.13)
[![Sonatype Snapshots](https://img.shields.io/nexus/s/https/central.sonatype.com/tools.jackson.module/jackson-module-scala_2.13.svg)](https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/tools/jackson/module/jackson-module-scala_2.13/)
[![Tidelift](https://tidelift.com/badges/package/maven/com.fasterxml.jackson.module:jackson-module-scala_2.13)](https://tidelift.com/subscription/pkg/maven-com.fasterxml.jackson.module.jackson-module-scala.2.13?utm_source=maven-com.fasterxml.jackson.module.jackson-module-scala.2.13&utm_medium=github_sponsor_button&utm_campaign=readme)

# Overview

[Jackson] is a fast JSON processor for Java that supports three models:
streaming, node, and object mapping (akin to the three independent models
[SAX]/[Stax], [DOM] and [JAXB] for XML processing).

The object mapping model is a high-level processing model that allows the
user to project JSON data onto a domain-specific data model appropriate
for their application, without having to deal with the low-level mechanics
of JSON parsing. It is the standard object mapping parser implementaton
in [Jersey], the reference implementation for JSR-311
(Java API for
Restful Web Services).

[Scala] is a functional programming language for the JVM that supports
Java interoperability. Its standard library is quite distinct from Java,
and does not fulfill the expectations of Jacksons default mappings.
Notably, Scala collections do not derive from `java.util.Collection` or
its subclasses, and Scala properties do not (by default) look like `Java Bean` properties.

The Scala Module supports serialization and limited deserialization of
Scala Case Classes, `Sequence`s, `Map`s, `Tuple`s, `Option`s, and Enumerations.

# Version Support

Jackson-module-scala follows the same release strategy of [jackson-databind](https://github.com/FasterXML/jackson-databind).
3.x branch is used for Jackson 3 development.

Scala 2.12, 2.13, 3.3+ are supported. Scala 2.11 support was dropped in v3.0.0. Java 17 is
the minimum supported version now (Jackson 3 generally has a minimum requirement of Java 17).

## Scala 3

There are a few differences from Scala 2 support.
* There are still a few tests that work with Scala 2 that fail with Scala 3
* It is expected that most use cases should work ok with Scala 3
  * Known issues with using jackson-module-scala with Scala 3 are tracked at https://github.com/FasterXML/jackson-module-scala/labels/scala3
  * There has been limited testing of using Scala 3 classes with Scala 2 jackson-module-scala or Scala 2 classes with Scala 3 jackson-module-scala
* Scala 3 emits no generic signature for a local or anonymous class ([scala/scala3#6349](https://github.com/scala/scala3/issues/6349)),
  so a `Map[String, Base]` member of `new { ... }`
阅读完整原文

项目深度分析 AI 生成

Scala 3 迁移与 Jackson 兼容性专家咨询与定制支持

产品构想针对企业在将系统从 Scala 2 升级到 Scala 3 时遇到的 Jackson 序列化兼容性问题(如泛型擦除、Sealed Trait 派生映射错误),提供专项代码审计、问题排查及补丁定制服务。
核心功能代码兼容性自动化扫描规则库、复杂泛型与枚举序列化问题诊断、Jackson 定制 Module 补丁开发。
目标用户拥有大型 Scala 代码库并计划/正在迁移到 Scala 3 的中大型企业技术团队。
难度/周期高 · 2 - 4 周/项目 · 成本:人力成本(需深入掌握 Scala 3 宏/反射与 Jackson 内部机制)
收费模式技术咨询费、专项迁移实施合同费(按项目或人天计费)。
竞争风险目标客户群体较窄(仅限深度使用 Scala 的成熟企业);迁移需求通常为一次性,复购率低。
依据 已验证事实

大数据(Spark/Flink)高性能序列化增强工具包

产品构想构建针对大规模数据流转场景的 Jackson-Scala 性能优化扩展库,优化内存占用、减少反射开销并提供更高效的二进制/JSON 编解码器。
核心功能代码生成(Code-gen)替代运行时反射的 SerDe、针对常见大数据 schema 的轻量化优化配置、性能压测与监控报告。
目标用户运行大规模 Spark/Flink 作业、面临高 GC 压力或高吞吐序列化瓶颈的数据工程团队。
难度/周期高 · 2 - 3 个月 · 成本:基准测试集群成本、开发与测试人力成本
收费模式商业源码授权(Open Core/商业版)、技术支持订阅制。
竞争风险市场上存在 Kryo、Avro、Protobuf 等竞品方案,若用户架构允许更替格式,则付费意愿有限。
依据 AI推测

企业级 JVM 序列化安全检测与加固方案

产品构想基于 Jackson 反序列化常见安全漏洞(如 Gadget 注入),结合 Scala 特性提供专用的静态分析规则与安全运行时配置代理。
核心功能针对 Scala 类型的 Gadget 链路漏洞库、自动化 CI/CD 静态扫描插件、默认安全的反序列化加固配置模版。
目标用户对合规和安全性要求极高的金融科技公司、电商平台及企业级云服务商安全团队。
难度/周期中等 · 1 - 2 个月 · 成本:安全规则研发与漏洞库维护成本
收费模式安全扫描插件 SaaS 订阅、企业安全顾问服务包。
竞争风险Jackson 社区本身持续修补安全机制,通用安全工具(如 Snyk、Semgrep)可能分流需求。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2010-11-29,近 30 天仍在推送
社区活跃Star 508 / Fork 140 / Issue 48(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。