Closed jrodriguez-rc closed 1 year ago
let's discuss in #123
I'll close this PR for now, I need time to resume it.
Sorry for no reaction for so long. I wanted to get to this more attentive for the whole autemn but couldn't find time (it is even opened in my browser for a couple of month by now ... :). From the high level: I think that in general the idea of self-serializable classes is good. But I'm a bit hesitant to include all possible (and rarely used) functionalities into ajson not to bloat it too much. I think it is already a bit on the edge :) So object serialization, if implemented within the package, should be ideally very lightweigth. But I'm open for ideas. And sorry again. please don't think it was ignoring :(
Custom JSON object. Interface
ZIF_AJSON_OBJECT
Serializing objects with the interface
zif_ajson_object
will retrieve the object content at the moment of setting data tozcl_ajson
instance.Example
The result of the upper example code is this JSON