On Sunday 28 May 2006 15:46, Chris Chabot wrote:
> Using prototype 1.5.0_rc0 and the Zend Framework (0.1.3) for the json
> part i'm able to simple do:
>
> $responses = array('a' => '1', 'b' => '2');
> header('X-JSON:'.Zend_Json::encode($responses));
>
> Note i did have to hack Zend_Json first to not quote around the property
> names, and only quote around the values, but then it all worked fine and
> dandyyou actually *should* quote your property names. For instance, if you use the property name 'class' and it doesn't have quotes around it, Safari will yell at you. Having quotes around the property names is no less correct than not having quotes around them.. -Jeremy
pgptFPcRn2QE4.pgp
Description: PGP signature
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
