com-lihaoyi / upickle

uPickle: a simple, fast, dependency-free JSON & Binary (MessagePack) serialization library for Scala
https://com-lihaoyi.github.io/upickle
MIT License
707 stars 158 forks source link

More straightforward customization of ReadWriters behaviour #486

Open szymon-rd opened 1 year ago

szymon-rd commented 1 year ago

Right now, to make changes to the Option serialization (put null in json), or to use snake_case, one has to override corresponding methods in the AttributeTagged. I propose two ways to improve the DX in this process: