[TYPO3-mvc] Making JSON data from object
Steffen Ritter
info at rs-websystems.de
Thu Mar 4 12:00:04 CET 2010
Søren Malling schrieb:
> Hi,
>
> I need to create a json string from a repository but (i guess) due to
> the use of object in the return of findAll() my json output (using
> json_encode) looks like this
>
> [{},{}]
>
> I only got 2 results in my object, so the amount of square brackets
> are correct, but there is no data.
>
> What would be the correct to solve this problem? I couldn't find any
> thing on JSON in the extbase source or from any Google searches?
>
> Cheers and thanks
>
> Søren
json_encode ist ja im gewissen masse eine serialisierung...
schau die mal __sleep und __wakeup an:
http://php.net/manual/de/language.oop5.magic.php
vllt. hilft das (also im objekt implentieren)
More information about the TYPO3-project-typo3v4mvc
mailing list