Open martinklepsch opened 7 years ago
I don't really have any input for how this would be implemented, the only requirement would be to keep the same performance characteristics that cheshire currently has.
Perhaps the cond
could be made into a macro that could be used within both the generation and serializable check?
To clean up data before serializing it it would be nice to have some kind of predicate if Cheshire will be able to turn
x
into JSON. I looked atcheshire.generate
but it seems not every thing implements theJSONable
protocol but instead there is this bigcond
handling the polymorphism.@dakrone do you have any thoughts on this and maybe an idea how you'd like to see it implemented - if at all? :)