[TYPO3-mvc] Making JSON data from object

Claus Due claus at wildside.dk
Fri Nov 16 12:22:49 CET 2012


Hi Roland,

> i guess in this case it would be up to me to copy and adjust your getValuesByAnnotation method to fit my needs, wouldn't it?

This is the key - if you wish to have your values exported differently - for example if you want some 1:n property exported as [1,2,3] instead of [{uid: 1}, {uid: 2}, {uid: 3}] - then you should subclass Tx_Fed_Service_Domain and override just the getValuesByAnnotation() method and handle your special properties as desired.

If you do make a solution for LazyObjectStorage (the current empty array is not very useful, I agree) I would be interested in merging that into FED's Service. Let me know if you come up with something clever there :)


Cheers,
Claus


More information about the TYPO3-project-typo3v4mvc mailing list