feat: fix json unknown fields
This commit is contained in:
@@ -30,7 +30,7 @@ pub fn main() !u8 {
|
||||
defer allocator.free(niri_windows_proc.stdout);
|
||||
defer allocator.free(niri_windows_proc.stderr);
|
||||
|
||||
const niri_window_result = try std.json.parseFromSlice([]NiriWindowsResult, allocator, niri_windows_proc.stdout, .{});
|
||||
const niri_window_result = try std.json.parseFromSlice([]NiriWindowsResult, allocator, niri_windows_proc.stdout, .{ .ignore_unknown_fields = true });
|
||||
break :blk niri_window_result;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user