Array data should be output as JSON object