Registry / serialization / json4s-jackson-2-11

json4s-jackson-2-11

JSON →
library4.0.6javamavenunverified

json4s-jackson provides JSON serialization and deserialization for Scala using the Jackson library, targeting Scala 2.11.

<dependency> <groupId>org.json4s</groupId> <artifactId>json4s-jackson_2.11</artifactId> <version>4.0.6</version> </dependency>
INSTALL
IMPORT
SIG · JSON4S-JACKSON-2-1
J
json4s-jackson-2-11
serializationjavav4.0.6
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.

Serialization
org.json4s.jackson.Serialization

Minimal example of serializing and deserializing a case class to/from JSON.

import org.json4s._ import org.json4s.jackson.Serialization import org.json4s.jackson.Serialization.{read, write} implicit val formats = DefaultFormats case class Person(name: String, age: Int) val json = write(Person("John", 30)) val person = read[Person](json) println(person)
Debug
Known issues
gotchaScala 2.11 is outdated; consider upgrading to Scala 2.13 or 3.x and using a compatible json4s version.
fix
Upgrade Scala version and use the corresponding json4s artifact (e.g., json4s-jackson_2.13).
affects: >=4.0.0
Upgrade
Version history
4.0.6latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
json4s-jackson-2-11 — mvn dependency:get json4s-jackson-2-11 · libregistry