zio / zio-json

Fast, secure JSON library with tight ZIO integration.
https://zio.dev/zio-json
Apache License 2.0
410 stars 146 forks source link

Add transformation and composition operators to JsonCodec #48

Open jdegoes opened 4 years ago

jdegoes commented 4 years ago

Just as JsonEncoder and JsonDecoder support a wide range of operators, which transform and combine codecs, so also can JsonCodec support operators, including:

These will have type signatures similar to the existing type signatures.

In addition, an xmapOrFail could be added, probably here and to the parent types.

afsalthaj commented 4 years ago

@jdegoes can I take this up?

fsvehla commented 4 years ago

@afsalthaj of course

jdegoes commented 2 years ago

No one is working on this, I don't think.

yisraelU commented 2 years ago

I am going to attempt this

yisraelU commented 2 years ago

@fsvehla The specific methods mentioned seem to be taken care of in zio2 , is there anything left to be done for this issue? edit: I see xmapOrFail is not done yet