Added nested JSON output