scala-json
Compile-time JSON marshaling and abstraction for Scala, Scala Native and Scala.js (by MediaMath)
jsoniter-scala
Scala macros for compile-time generation of safe and ultra-fast JSON codecs (by plokhotnyuk)
Our great sponsors
scala-json | jsoniter-scala | |
---|---|---|
0 | 19 | |
61 | 514 | |
- | - | |
0.0 | 9.7 | |
7 months ago | 4 days ago | |
Scala | Scala | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
scala-json
Posts with mentions or reviews of scala-json.
We have used some of these posts to build our list of alternatives
and similar projects.
We haven't tracked posts mentioning scala-json yet.
Tracking mentions began in Dec 2020.
jsoniter-scala
Posts with mentions or reviews of jsoniter-scala.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-06-04.
-
Learning macros in scala 2.13
I suggest looking into jsoniter-scala Macro API it has unique support of both Scala 2 and Scala 3 in a source compatible manner.
-
Using SWAR techniques to speed up parsing and serialization from/to JSON
Since v2.13.6 release jsoniter-scala dropped support of Java 8: https://github.com/plokhotnyuk/jsoniter-scala/releases/tag/v2.13.6
SWAR (SIMD in register) techniques were used in the last release of jsoniter-scala to speed up parsing and serialization on JVM platforms.
-
Scala 3 compatible macro libraries
Try jsoniter-scala. It is a library with macros for handy deriving of safe and efficient JSON codecs that has Scala 3 support since v2.12.1
-
Every time I sit down to use an HTTP client and JSON parser, I get really frustrated
Use jsoniter-scala for handy auto-derive safe and efficient JSON codecs.
-
Scala3 adoption doubts
Here is a great example of macros migration from Scala 2 to Scala 3 that are source compatible and tested by the same test sources.
Impressive work, although I'll stand by Scala 2 macros being a blocker -- I mean, look at this monster, nearly 3K lines of dense Scala 3 macro code to replicate functionality you already had in Scala 2. For most mortals that would be a gigantic endeavor, although a great learning experience I'm sure :)
-
New Scala 3 Codebases
BTW, here is a great example of macros migration from Scala 2 to Scala 3.
- Core and Macros APIs of jsoniter-scala got Scala Native support
-
Updated benchmark results of JSON parsers for Scala - now with results for circe and play-json boosters based on jsoniter-scala.
Sources of benchmarks are here.
What are some alternatives?
When comparing scala-json and jsoniter-scala you can also consider the following projects:
circe - Yet another JSON library for Scala
DSL-JSON - High performance JVM JSON library
json4s - JSON library
Play JSON - The Play JSON library
jackson-module-scala - Add-on module for Jackson (https://github.com/FasterXML/jackson) to support Scala-specific datatypes
Jackson - Core part of Jackson that defines Streaming API as well as basic shared abstractions
spray-json - A lightweight, clean and simple JSON implementation in Scala
borer - Efficient CBOR and JSON (de)serialization in Scala
play-json
jawn - Jawn is for parsing jay-sawn (JSON)