Closed webliupeng closed 6 years ago
It is give us value but in form Float64 instead of Int64 println("foo", o.Get("foo").Float64())
. It will return value foo +1.000000e+000
I am unable to find why lib behave like this?
o, err := objx.FromJSON(`{"foo": 1}`)
if (err != nil) {
panic(err)
}
println("foo", o.Get("foo").Int())
will return 1
It's return 0.