1
0
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:
krishnakarthik1309 2018-10-04 17:30:33 +05:30
parent 0d2d342cb0
commit acc48b5631

View File

@ -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)