Return an array instead of a StdClass object

Related issue : #5