jsoniter-scala
jsoniter-scala copied to clipboard
Scala macros for compile-time generation of safe and ultra-fast JSON codecs
Once in a while, when I F up, I get the familiar exception: ``` com.github.plokhotnyuk.jsoniter_scala.core.JsonReaderException: missing required field "id", offset: 0x00000a14, buf: +----------+-------------------------------------------------+------------------+ | | 0 1 2 3 4...
We have JsonCodecMaker.makeWithRequiredCollectionFields But if input: { "arr": null } and case class Test(arr: Seq[Int]) We will be have arr = Seq() empty collection. But sometimes we need Exception in...
I looked at the http4s example, but it appears to read all inputs into memory rather than streaming. This appears to work so far, but it would be nice to...
https://www.reddit.com/r/rust/comments/a6j5j1/making_rust_float_parsing_fast_and_correct/
NPE when dealing with case classes containing non-Scala/Java data types ``` Caused by: java.lang.NullPointerException at com.github.plokhotnyuk.jsoniter_scala.core.JsonWriter.writeVal(JsonWriter.scala:263) at line2bf6e771f0214565bf00d2eff151d538147.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$KinesisSink$$anon$1.e0(command-3626532786886738:27) at line2bf6e771f0214565bf00d2eff151d538147.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$KinesisSink$$anon$1.encodeValue(command-3626532786886738:27) at line2bf6e771f0214565bf00d2eff151d538147.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$KinesisSink$$anon$1.encodeValue(command-3626532786886738:27) at com.github.plokhotnyuk.jsoniter_scala.core.JsonWriter.write(JsonWriter.scala:525) at com.github.plokhotnyuk.jsoniter_scala.core.package$.writeToArray(package.scala:208) at line2bf6e771f0214565bf00d2eff151d538147.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$KinesisSink.process(command-3626532786886738:43) at line2bf6e771f0214565bf00d2eff151d538147.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$KinesisSink.process(command-3626532786886738:11)...
It should check compile time of `jsoniter-scala` and other libraries that are used in `jsoniter-scala-benchmark`. Consider using the following sbt plugin: https://github.com/triplequote/sbt-scalabench Currently used benchmark that compare jsoniter-scala with argounaut,...
https://tools.ietf.org/html/rfc8785
Fine tune its configuration to follow the current style where it is possible
I have the following class hierarchy: ```scala import com.github.plokhotnyuk.jsoniter_scala.macros._ import com.github.plokhotnyuk.jsoniter_scala.core._ final case class Container(a: Option[Int], b: Option[String], src: Source) object Container { implicit val codec: JsonValueCodec[Container] = JsonCodecMaker.make(CodecMakerConfig.withDiscriminatorFieldName(None)) }...