[FLOW3-general] JSON transformation

Sebastian Kurfürst sebastian at typo3.org
Fri Mar 9 07:15:54 CET 2012


Hey Adrian,

>> See http://forge.typo3.org/issues/32106 for an indepth concept by me.
>
> I feared you would refer to that issue entry I already tried to
> understand ;-)
If you have questions to it let me know, then we can discuss it!

> In my own sandbox, the idea of having a central configuration that
> defines the json-representation of each entity gets more and more
> fancy to me. But maybe all of you say that wasn't a good idea.
What I could imagine is the following:

  * Extend Property Mapping to support the reverse direction "object ->
    Simple Type", and also under a specific "context".
  * For JSON, you'd then call property mapping "object -> array" under
    the context "json"
  * the resulting array would then be json_encoded.


The type converter configuration from object to JSON could then be
defined globally via settings.yaml or overridden using type converter
specific configuration.

What do you think?

Greets,
Sebastian

PS: I'm on holidays next week ;)


More information about the FLOW3-general mailing list