mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-03 15:02:32 +02:00
fix json_test.go: Parsing none(nil)
: json should parse as (values) None if input is nil.
This commit is contained in:
parent
0d2d342cb0
commit
acc48b5631
@ -215,6 +215,8 @@ func Parse(input interface{}) core.Value {
|
||||
return obj
|
||||
case []byte:
|
||||
return NewBinary(input.([]byte))
|
||||
case nil:
|
||||
return None
|
||||
default:
|
||||
v := reflect.ValueOf(input)
|
||||
t := reflect.TypeOf(input)
|
||||
|
Loading…
x
Reference in New Issue
Block a user