Closed RainWarrior closed 4 years ago
Also, not sure if using my expectations are correct, but Codec.EMPTY.codec().encode(Unit.INSTANCE, JsonOps.INSTANCE, JsonOps.INSTANCE.empty()); != JsonOps.INSTANCE.empty()
(returns empty map instead of JsonNull
)
That's expected since EMPTY
is a MapCodec (returns a map); on decoding JsonOps.INSTANCE.empty()
will get expanded to empty map too iirc since the typing is not that strict
Optional
withDataResult
to better track errors and allow recovery