[Catalyst] need JSON converter which supports unquoted strings
adeola at digitalcraftsmen.net
Mon Nov 19 14:37:07 GMT 2007
Moritz Onken wrote:
> sorry, a bit off topic, but I'm looking for a perl-object-to-JSON
> converter which supports unquoted strings.
> Modules like JSON::Any quote everything except true and false. But I
> Any suggestions?
If the quoted string is a function can't you just eval it and stuff it
in a var:
var myFunc = eval( JSON.someFunction );
var result = myFunc( 'args' );
I haven't tried this but this _should_ work.
More information about the Catalyst