[TYPO3-mvc] Making JSON data from object
Robert Böttner
lists at boettner.it
Thu Mar 4 13:16:46 CET 2010
Hi Søren,
just have a look at the mvc_extjs extension and Tx_MvcExtjs_ExtJS_Utility::encodeObjectForJSON method.
Robert.
Am 04.03.2010 um 11:48 schrieb Søren Malling:
> 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
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list