Hi Michael,
Talking about Perl modules, I think JSON.pm would be good choice.
This is a pure Perl implemented module which doesn't require compiling
to use it.
For more better performance, JSON::Syck module is alternative.
On 11/27/06, mjekberg <mjekberg@...> wrote:
> Never mind - duh - I actually read the details on the code. Not gonna
> work calling data from remote server. Back to CGI or PHP. Anyone know
> an easy non-50 million module way to convert a PERL array to a
> javascritp array? :-)
And I'd like to introduce XML::TreePP module which parses/writes
an XML file like XML.ObjTree JS-library did.
use XML::TreePP;
use JSON;
my $tpp = XML::TreePP->new();
my $tree = $tpp->parsefile( $xml );
my $json = JSON->new()->objToJson($tree);
The combinatoin of XML::TreePP and JSON.pm/JSON::Syck is quite
easy to read XML file and write JavaScript object.
--
Kawasaki Yusuke
http://www.kawa.net/