[TYPO3-mvc] Making JSON data from object

Søren Malling soren.malling at gmail.com
Thu Mar 4 11:48:53 CET 2010


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


More information about the TYPO3-project-typo3v4mvc mailing list