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

Oliver Hader oh at inpublica.de
Fri May 4 16:07:24 CEST 2007

Hi Ingo,

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 ?

JSON is not only related to AJAX. You can use it in "regular" JavaScript
context. Maybe the t3lib_ajax could be reduced to work with prototype.js
or possibly removed at all.

IMO t3lib_div is a better place than t3lib_ajax for converting an array
to a string which contains JavaScript objects.

Oliver Hader

More information about the TYPO3-team-core mailing list