fix json renderer
This commit is contained in:
parent
98747a3d30
commit
728076ce9f
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ pub fn render(allocator: std.mem.Allocator, weather: types.WeatherData) ![]const
|
|||
.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" {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue