joomla/joomla-platform — pull request #1566 by okonomiyaki3000 (2012-10-05 04:46:08+00:00)
Title: Improvments to getJSObject

Resources are ignored
Object keys and strings are encoded with json_encode
If the input array contains (php) objects, their values are used for recursion rather than the objects themselves (the function takes an array, not an object)
Less string concatenation, more array implosion