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.3.0
Name Modified Size InfoDownloads / Week
Parent folder
Add support for Result instance source code.tar.gz 2019-09-23 51.6 kB
Add support for Result instance source code.zip 2019-09-23 55.2 kB
README.md 2019-09-23 327 Bytes
Totals: 3 Items   107.1 kB 0

The Result instance will return different methods to get static type.

:::go
const json = `{"name":{"first":"Tom","last":"Hanks"},"age":61}`
result, err := gojsonq.New().JSONString(json).FindR("name.first")
if err != nil {
    log.Fatal(err)
}
name, _ := result.String()
fmt.Println(name)
Source: README.md, updated 2019-09-23