I'm using JSONP to pass data from the server to the client.

Normally the call is like ...

tabRA_UpdateReportIDs({"13":"Richard Quadling's demo report (Richard's
complicated report)"});

A hash.

In some instances, there is no data and the call looks like this ...


An array.

As I understand things, this is not incorrect. I'm using PHP and I've
placed a request to allow for an option to force empty arrays to be an
empty hash for the json_encode() function. On the json_decode()
function, there is an option allowing the user to decide between an
object or an associative array (object or hash), so having a similar
option on the json_encode() side would, on the surface, seem useful.

My point in contacting this group is to see if ...


should work like ...


If you run these commands in console you get quite different output ...


vs ..



Richard Quadling.

Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to