Fixed issue with JSON object treated as array.