| 1 | // Package gojsonq provides a simple, elegant and fast ODM like API to access/query JSON document. |
| 2 | // |
| 3 | // JSON document can be read from file, string or io.Reader. |
| 4 | // Accessing the value of json property or querying document is simple as the example below: |
| 5 | // |
| 6 | // package main |
| 7 | // |
| 8 | // import "github.com/thedevsaddam/gojsonq" |
| 9 | // |
| 10 | // const json = `{"name":{"first":"Tom","last":"Hanks"},"age":61}` |
| 11 | // |
| 12 | // func main() { |
| 13 | // name := gojsonq.New().FromString(json).Find("name.first") |
| 14 | // println(name.(string)) // Tom |
| 15 | // } |
| 16 | // |
| 17 | // For more details, see the documentation and examples. |
| 18 | // |
| 19 | package gojsonq |