[FLOW3-general] FLOW3 objects and JSON

Karsten Dambekalns karsten at typo3.org
Mon Dec 14 10:40:50 CET 2009


Hi Zach.

On 13.12.09 22:05, Zachary Davis, Cast Iron Coding LLC wrote:
> I've noticed that when I encode my model objects using json_encode, the
> object properties are stored in "FLOW3_Persistence_cleanProperties". Is
> there a good way to prepare an object for JSON encoding in such a way
> that only its public properties are accessible? Do I need to write a
> service for this, or is there something already present in FLOW3 that
> can help with this?

Good point, last time I checked what json_encode produces we didn't have
that property, it seems :)

No, nothing there yet, but should be. I took a note. For now you could
just write a few lines to remove those props before encoding, but watch
out to clone an object before doing so...

Regards,
Karsten


More information about the FLOW3-general mailing list