jsonSerializable 接口,我可以
jsonSerializable
$serializeableData = json_decode(json_encode($objectTree), true);
对象转换为树结构。有没有更简洁、更高效的方法来转换对象树?