I almost never use json_decode() without true as the second argument either–I find stdClass objects generally pretty useless.

json_encode()’s JSON_FORCE_OBJECT in 5.3 is useful in dealing with PHP’s array/hash duality:

json_encode(array())
// -> “[]”
json_encode(array(), JSON_FORCE_OBJECT)
// -> “{}”