Am 01.09.2014 17:06, schrieb Jeroen De Dauw:
Cast the array to object.
Hm, true. We really don't want objects in our "serialized" representations, but i guess empty objects to represent empty maps would be acceptable. But it's a bit scary, since PHP code looking at the structure may encounter an object where it expects an array. "This part of the structure is an associative array, unless it's empty, then it's an object" - ew...
Anyway, do you have a good idea when and where to apply that cast?
Also, can the API formatter code handle this?
-- daniel