Maybe its helpful to be able to pass a string there, aswell. That way one could encode all objects without encode_json() as 'undefined' cheaply.
Just a thought.
arne
On Wed, 22 May 2013, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
I don't know why you want to have special handling of strings, I just noticed that you already do, and assumed you wanted to keep it that way. ;-)