ZIO Json is a fast and secure JSON library with tight ZIO integration.
The goal of this project is to create the best all-round JSON library for Scala:
- Performance to handle more requests per second than the incumbents, i.e. reduced operational costs.
- Security to mitigate against adversarial JSON payloads that threaten the capacity of the server.
- Fast Compilation no shapeless, no type astronautics.
- Future-Proof, prepared for Scala 3 and next-generation Java.
- Simple small codebase, concise documentation that covers everything.
- Helpful errors are readable by humans and machines.
- ZIO Integration so nothing more is required.
In order to use this library, we need to add the following line in our build.sbt file:
libraryDependencies += "dev.zio" %% "zio-json" % "0.10.0"For cross-platform projects with Scala.js and Scala Native need to replace %% operator by %%%,
and optionally when using java.time.ZoneId and java.time.ZonedDateTime types need to add
the dependency on the latest version of Timezone DB:
libraryDependencies += "io.github.cquiroz" %%% "scala-java-time-tzdb" % "latest.integration"Continue with the Getting Started guide for a walkthrough of encoding and decoding JSON with ZIO JSON.
Learn more on the ZIO JSON homepage!
For the general guidelines, see ZIO contributor's guide.
See the Code of Conduct
-
Uses JsonTestSuite to test parsing. (c) 2016 Nicolas Seriot)
-
Uses YourKit Java Profiler for performance optimisation.