I’m thinking of something like https://github.com/chpatrick/codec
Sometimes deriving generic JSON instances is what you want, but there are other situations where doing it by hand is more appropriate. Then it feels wrong to write separate serialization and deserialization code.