Fix omitempty in json.marshal

This commit is contained in:
Feoramund
2024-04-27 05:24:59 -04:00
parent f745fff640
commit 309a770cbf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -420,7 +420,7 @@ marshal_to_writer :: proc(w: io.Writer, v: any, opt: ^Marshal_Options) -> (err:
data := rawptr(uintptr(v.data) + info.offsets[i])
the_value := any{data, id}
if is_omitempty(the_value) {
if omitempty && is_omitempty(the_value) {
continue
}