mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Merge pull request #4896 from cstrachan88/master
Fixed json null value parsing
This commit is contained in:
@@ -176,7 +176,11 @@ marshal_to_writer :: proc(w: io.Writer, v: any, opt: ^Marshal_Options) -> (err:
|
|||||||
return .Unsupported_Type
|
return .Unsupported_Type
|
||||||
|
|
||||||
case runtime.Type_Info_Pointer:
|
case runtime.Type_Info_Pointer:
|
||||||
return .Unsupported_Type
|
if v.id == typeid_of(Null) {
|
||||||
|
io.write_string(w, "null") or_return
|
||||||
|
} else {
|
||||||
|
return .Unsupported_Type
|
||||||
|
}
|
||||||
|
|
||||||
case runtime.Type_Info_Multi_Pointer:
|
case runtime.Type_Info_Multi_Pointer:
|
||||||
return .Unsupported_Type
|
return .Unsupported_Type
|
||||||
|
|||||||
Reference in New Issue
Block a user