DSL-JSON
jsoniter-scala
Our great sponsors
DSL-JSON | jsoniter-scala | |
---|---|---|
1 | 19 | |
816 | 517 | |
1.2% | - | |
4.1 | 9.7 | |
9 days ago | about 12 hours ago | |
Java | Scala | |
BSD 3-clause "New" or "Revised" License | MIT License |
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.
DSL-JSON
-
Performance of 12 JSON parsers for Scala
I've updated results of benchmarks of 12 JSON parsers for Scala: - AVSystem's scala-commons - Borer - Circe - DSL-JSON - Jackson - jsoniter-scala - Play-JSON, - play-json-jsoniter - Spray-JSON - uPickle - weePickle - zio-json
jsoniter-scala
-
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?
circe - Yet another JSON library for Scala
jackson-module-scala - Add-on module for Jackson (https://github.com/FasterXML/jackson) to support Scala-specific datatypes
json4s - JSON library
jbpm - a Business Process Management (BPM) Suite
Play JSON - The Play JSON library
Flowable (V6) - A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.
spray-json - A lightweight, clean and simple JSON implementation in Scala
borer - Efficient CBOR and JSON (de)serialization in Scala
Jackson - Core part of Jackson that defines Streaming API as well as basic shared abstractions
ActiveJ - ActiveJ is an alternative Java platform built from the ground up. ActiveJ redefines core, web and high-load programming in Java, providing simplicity, maximum performance and scalability