[TYPO3-core] RFC: Moving t3lib_TCEforms_inline::getJSON() to t3lib_div::array2json()

Ernesto Baschny [cron IT] ernst at cron-it.de
Fri May 4 17:16:02 CEST 2007


Ingmar Schlecht wrote: on 04.05.2007 16:14:

> Ingo Renner wrote:
>> Am 04.05.2007 um 14:33 schrieb Oliver Hader:
>>
>>> Move the method from t3lib_TCEforms_inline to t3lib_div.
>>> t3lib_TCEforms_inline::getJSON(...) -> t3lib_div::array2json(...)
>> how about moving it to t3lib_ajax ?
> 
> I discussed about t3lib_ajax with Sebastian (who introduced it) and
> others and it seems like there's a consensus on removing or deprecating
> that lib completely.
> 
> The reason for that is, that t3lib_ajax works with XML instead of JSON
> and apart from that doesn't really help when creating AJAX applications.
> 
> IRRE and the AJAX pagetree both don't use t3lib_ajax.

Also true.. so I also change my mind, but having a central JSON method
is a good idea. So t3lib_div is probably the best place we currently
have, as this is mainly a wrapper for the contrib/json.php class.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list