zio-json
zio-json copied to clipboard
Fast, secure JSON library with tight ZIO integration.
- [x] Complete microsite - [x] Break out integrations into separate modules - [x] Creating integrations with mainstream web servers - [ ] Adding methods to the JSON AST —...
It would be nice to have support for encoding enums as string values, typically `sealed trait`s of only `case objects`. For example: ```scala sealed trait StreamStatus case object UPDATING extends...
- [ ] `final def transformAt[A Json): Either[String, Json] = ???` - [ ] `final def delete(cursor: JsonCursor[_, _]): Either[String, Json] = ???` - [ ] `final def diff(that: Json):...
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.
Ability to read a JSON patch into a JSON diff structure: ```scala object JsonDiff { def fromRFC6902json: Json): JsonDiff = ??? } ```
Ability to read a JSON patch into a JSON diff structure: ```scala object JsonDiff { def fromRFC7386(json: Json): JsonDiff = ??? } ```
Hello! I have a domain model (for consul api) and want to encode/decode types like `Check` and `ServiceCheck` and their subtypes . The issue is in model encoding/decoding results. Classes...
We should support Scala 3 with the same API as Scala 2. This way users can easily transition from Scala 2 to Scala 3 without having to change any of...
The pattern seems to be when the base sealed trait has several parameters eg `sealed trait Foo[A]` but the child class instantiates them `case class Bar(..) extends Foo[SomeConcreteType]` i'm hoping...