convert the whole JSON object to an array on return