jsoniter-scala
jsoniter-scala copied to clipboard
Scala macros for compile-time generation of safe and ultra-fast JSON codecs
Hey, Actually i am using `jsoniter-scala` lib but i am having situation like this ``` val jsonString1 = """{"name": "foo", "id": "2604"}""" val jsonString2 = """{"name": "bar", "id": 2105}""" ```...
When trying: ```Scala case class ConfiguracionCola( nombre: String, maxWorkers: Int, jobTimeout: Duration, observaciones: String, prioritaria: Boolean, grupo: String, httpTimeout: Duration, httpTtl: Duration, httpMaxReintentos: Int ) object ConfiguracionCola: given JsonValueCodec[ConfiguracionCola:] =...
Hi, Is there a way to completely skip the serialization of an optional class field with a default value ? As an example, say I have a class Foo: ```scala...
I have an interesting usecase where I'm deserializing a JSONB column from Postgres into a class object. In most cases however I'm just sending these as a CRUD API output...
I was testing the behavior of Circe and Jsoniter by deriving the codecs for `Out` case class defined like this: ```scala class NewType private (val value: Int) object NewType {...
Here's a simplified scenario. Any insight would be greatly appreciated. ```scala import com.github.plokhotnyuk.jsoniter_scala.core.* import com.github.plokhotnyuk.jsoniter_scala.macros.* trait Aggregate { type Props def propsCodec: JsonValueCodec[Props] given JsonValueCodec[Props] = propsCodec } trait Events...
Hi, Thanks for your contribution. I have a question about how [this buffer](https://github.com/plokhotnyuk/jsoniter-scala/blob/2c9769aa9662d7c5c2a2f5d06e04c7aeb964c8ef/jsoniter-scala-core/js/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/core/JsonWriter.scala#L27) which is part of the thread local variable [writer pool](https://github.com/plokhotnyuk/jsoniter-scala/blob/2c9769aa9662d7c5c2a2f5d06e04c7aeb964c8ef/jsoniter-scala-core/jvm/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/core/package.scala#L11) connects to something like the writer config...
Fixes #1188
Recent changes to `jsoniter-scala-core/native/src/main/resources/scala-native/multiply_high.c` have advanced the discussion. I do have a concern about one section of code. Please forgive me if I have missed something, either obvious or subtle....