Open williamoanta opened 3 years ago
I answered you in Stack Overflow, basically your JsonObjCodec does conversions to string but not parsing. I suggested some alternative solutions.
But since you opened an issue here I would like to take the opportunity to evaluate adding some utilities in the library to work with types that don't have json transformations but do have transformation to/from string.
It's an interesting scenario for complex things like composing codecs, and take precisely advantage of codec composability properties.
Thanks for your prompt response! I have also replied on StackOverflow. I would be curious to see what solution you come up with if any.
I have the following DU which is composed of other DUs or/and Records.
While trying to deserialize and serialize with Fleece, I have written the following
JsonObjCodec
.For an unknown reason, it does not compile with the error No overloads match for method 'Map'. All the nested DUs or Records have either a JsonObjCodec or static FromString and ToString methods defined.
Any solution with respect to how I could solve this via Fleece would be appreciated. The library is already deeply used in the project, so changing it would involve too much refactoring.
Below I copy-pasted the definition of the other DU and Records, as reference:
Libraries Used in project:
Also posted on StackOverflow