Have you thought about how to support labeled tuples ?
So for the type (int * bool), the value (5, false) gets serialized as [5, false].
So maybe for the type (a:int * b:bool) the value (~a:5, ~b:true) might get serialized as [["a",5], ["b",false]] ?
I'm implementing this support for pa_ppx.deriving_plugins.yojson, so I have to make a decision about how to do it, so if you already had a decision made, I'd be happy to follow along.
Have you thought about how to support labeled tuples ?
So for the type
(int * bool), the value(5, false)gets serialized as[5, false].So maybe for the type
(a:int * b:bool)the value(~a:5, ~b:true)might get serialized as[["a",5], ["b",false]]?I'm implementing this support for pa_ppx.deriving_plugins.yojson, so I have to make a decision about how to do it, so if you already had a decision made, I'd be happy to follow along.