Registry / serialization / jackson-module-scala-2-12

jackson-module-scala-2-12

JSON →
library2.21.2javamavenunverified

Jackson module for Scala data types, enabling seamless serialization and deserialization of Scala case classes, collections, and options.

<dependency> <groupId>com.fasterxml.jackson.module</groupId> <artifactId>jackson-module-scala_2.12</artifactId> <version>2.21.2</version> </dependency>
INSTALL
IMPORT
SIG · JACKSON-MODULE-SCA
J
jackson-module-scala-2-12
serializationjavav2.21.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DefaultScalaModule
com.fasterxml.jackson.module.scala.DefaultScalaModule

Registers the DefaultScalaModule with Jackson ObjectMapper to support Scala types.

import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.module.scala.DefaultScalaModule; public class Quickstart { public static void main(String[] args) throws Exception { ObjectMapper mapper = new ObjectMapper(); mapper.registerModule(new DefaultScalaModule()); String json = mapper.writeValueAsString(Map.of("key", "value")); System.out.println(json); } }
Debug
Known issues
breakingThis module is for Scala 2.12; use jackson-module-scala_2.13 or _3 for newer Scala versions.
fix
Select the correct Scala version suffix for your project's Scala version.
affects: *
Upgrade
Version history
2.21.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
jackson-module-scala-2-12 — mvn dependency:get jackson-module-scala-2-12 · libregistry