Return an array instead of a StdClass object