Download Latest Version Fix error reset on calling Reset method. Issue #80 source code.zip (145.1 kB)
Email in envelope

Get an email when there's a new version of GoJSONQ

Home / v2.4.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2019-11-20 320 Bytes
Update As method source code.tar.gz 2019-11-20 54.0 kB
Update As method source code.zip 2019-11-20 57.3 kB
Totals: 3 Items   111.7 kB 0

Result.As() supports all the available method in Result type except for the methods with an argument like Time

:::go
result, _ := gojsonq.New().FromString(jsonStr).From("prices").GetR() // handle error
var prices []float32
result.As(&prices) // handle error
fmt.Printf("%#v\n", prices)
Source: README.md, updated 2019-11-20