I play to use this, but had a question regarding its implementation. Looking at the
doxygen files, I see that there are 2 methods: initWithJSON, encodeAsJSON.
However, looking at the source header CBLJSON.h, I see that there is an additional an additional optional method declared, setOnMutate:(CBLOnMutateBlock)onmutate - I'm still a bit unclear on when to implement / utilize this method properly.
Does this mean that if my object implementing CBLJSONEncoding is at all mutable, I need this class? And if so, does it mean that anytime I change any of its instance variables / properties, I need to call the onMutate block?
If the above answers are yes, is there any clean way I can just observe changes to all my properties and automatically call this block, perhaps as a generic superclass to any nested child classes of a CBLModel?
Thanks,
Ragu