François Sarradin
François Sarradin
To fix it, it seems that I've to add chars N and I in the function `checkNumber` in `lexer,scala` . But it seems that something equivalent should be done for...
With ZIO JSON 0.1.4 (under Scala 2.13), this example ```scala case class Data(value: Double) implicit val decoder = DeriveJsonDecoder.gen[Data] println("""{ "value": "NaN" }""".fromJson[Data]) println("""{ "value": "Infinity" }""".fromJson[Data]) println("""{ "value": "-Infinity"...
With ZIO JSON 0.1.4 ```scala println("-Infinity".fromJson[Double]) ``` gives ``` Right(-Infinity) ``` This is not correct according to [RFC7159](https://tools.ietf.org/html/rfc7159#section-6). `fromJson[Double]` and `fromJson[Double]` should fail in this case and a Left value.
Totallylazy is a nice API that needs to be less verbose ;) http://code.google.com/p/totallylazy/