Registry / serialization / json4s-native-2-13

json4s-native-2-13

JSON →
library4.0.7javamavenunverified

json4s-native is a Scala library for JSON processing, providing native parsing and serialization support for Scala 2.13.

<dependency> <groupId>org.json4s</groupId> <artifactId>json4s-native_2.13</artifactId> <version>4.0.7</version> </dependency>
INSTALL
IMPORT
SIG · JSON4S-NATIVE-2-13
J
json4s-native-2-13
serializationjavav4.0.7
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.native.Serialization

Serializes and deserializes a case class to/from JSON using json4s-native.

import org.json4s._ import org.json4s.native.Serialization import org.json4s.native.Serialization.{read, write} implicit val formats: Formats = Serialization.formats(NoTypeHints) case class Person(name: String, age: Int) val person = Person("John", 30) val json = write(person) val parsed = read[Person](json) println(s"JSON: $json, Parsed: $parsed")
Debug
Known issues
gotchaVersion 4.0.7 may have compatibility issues with Scala 2.13.12+ due to changes in Scala reflection.
fix
Upgrade to json4s 4.1.0 or later for better Scala 2.13 compatibility.
affects: <=4.0.7
Upgrade
Version history
4.0.7latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
json4s-native-2-13 — mvn dependency:get json4s-native-2-13 · libregistry