made output a single JSON object