fix json renderer

This commit is contained in:
Emil Lerch 2026-01-06 17:00:13 -08:00
parent 98747a3d30
commit 728076ce9f
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -16,7 +16,7 @@ pub fn render(allocator: std.mem.Allocator, weather: types.WeatherData) ![]const
.weather = weather.forecast, .weather = weather.forecast,
}; };
return try std.fmt.allocPrint(allocator, "{any}", .{std.json.fmt(data, .{})}); return try std.fmt.allocPrint(allocator, "{f}", .{std.json.fmt(data, .{})});
} }
test "render json format" { test "render json format" {