changed the response from a json array to be a json object containing an array of objects.