An associative array because when you call json_encode() on it, it will convert to the proper JSON notation for an object. The keys in the array ... ... <看更多>
It only converted the outer most array to object and not the nested arrays. $object = json_decode(json_encode($array), false);. I solved this by using: ... <看更多>
Mage::helper('core')->jsonEncode($array);. In native PHP (version 5.3.0 or above), I can achieve it by passing this constant "JSON_FORCE_OBJECT" ... ... <看更多>