Merge pull request #2457 from jakubtomsu/master

Handle unmarshalling unknown values in `core:encoding/json`
This commit is contained in:
gingerBill
2023-04-20 11:27:09 +01:00
committed by GitHub
+6
View File
@@ -215,6 +215,12 @@ unmarshal_value :: proc(p: ^Parser, v: any) -> (err: Unmarshal_Error) {
}
}
switch dst in &v {
// Handle json.Value as an unknown type
case Value:
dst = parse_value(p) or_return
return
}
#partial switch token.kind {
case .Null: