[FLOW3-general] JSON transformation

Adrian Föder afoeder at live.de
Wed Mar 7 16:27:10 CET 2012


Hi all,

for me, it turned out that converting something to JSON is an often-used 
case; not only for the MVC's JsonView (where a powerful functionality 
resides), but also for (many) ViewHelpers that may grow up.
The chaining possibilities in Fluid would also make it possible to use a 
generic "powerful" JSON encoder for use with many different objects.

Bastian's suggestion of http://forge.typo3.org/issues/32607 : Could be 
powered by the JSON encoder.

The configuration that is used by the JsonView and controls/filters the 
output of the JSON could reside at the global configuration, even per 
object! That would allow to distribute default "recommendations" (for 
example XLIFF -> JSON) and it would make sure that a JSON representation 
of a user object is the same in every use case.

Chatting shortly with Robert carved out the idea to use the property 
mapper; although nice there's the drawback that the property mapper 
currently isn't able to convert *from* objects.

I just wanted to perpetuate this idea here in the list; and ask: what do 
you think? Would that be also worth a feature entry?

Best! :)
Adrian


More information about the FLOW3-general mailing list