Oh yes! That is exactly what I was looking for !
Indeed. My plan is to simplify the specific JSON encoding methods of some modules, where I have the entire control over what types are being translated to JSON. Would you say that it is safe to use it that way ? For example, here: trainer-reason/src/Trainer.re at master · danielo515/trainer-reason · GitHub
That is a lot of boilerplate for such a simple structure, and that is just the 50% ! There is also a decoder