Handle unmarshalling to json.Value
This commit is contained in:
1 parent
b7b5043aea
commit
994825671d
1 file changed
+6
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user