jsoniter-scala
jsoniter-scala copied to clipboard
Scala macros for compile-time generation of safe and ultra-fast JSON codecs
Add these options to the list of compiler options after v2.13.9 release of Scala.
i'm trying to migrate my code from dsl-json to jsoniter-scala. In all the examples I've seen there are codecs to parse the string into a domain object. I'm getting stuck...
SIMD allow revolutionary intra-core parallelism. Actually the fastest Json library on earth is called simdjson for this precise reason. openjdk 16 release next month and bring SIMD support to the...
Currently default methods are called on each encoding method call, for example: ``` private def e0(x: JsonCodecMakerSpec.this.Defaults, out: JsonWriter): Unit = if (x.ne(null)) { out.writeObjectStart(); { val v = x.s;...
Currently it is called for all fields in the start of decoding method, for example: ``` private def d0(in: JsonReader, default: JsonCodecMakerSpec.this.Defaults): JsonCodecMakerSpec.this.Defaults = if (in.isNextToken('{')) { var _s: String...
I'd like to derive a codec for ```scala case class A(x:Int)(y:Int) implicit val jsonCodec: JsonValueCodec[A] = JsonCodecMaker.make ``` but multiple parameter lists are not supported: ``` [error] 'A' hasn't a...
Hello, I wonder if it's possible to add variable class automatically to codec (using macro). exemple: `case class Margin(price:BigDecimal, purchase:BigDecimal){ val amount = price - purchase val rate = {...
Hi, We are very happy with jsoniter-scala (feature and performance), but we need a better way to manage parsing issue. When the parsed Json does not match the Scala classes,...
I'm very curious about the result, for science! Since it can significantly outperform Jackson: https://litote.org/kmongo/performance/ https://github.com/Kotlin/kotlinx.serialization
Hello! I have a json: {"id":"09", "name": "Nitin", "department":"Finance", "help": ["a", "b"], "mm" : {"22": "11"}, "z": 12 } and I need to get some case class A(name: String, value:...