https://github.com/icholy/jsonvalue
https://github.com/icholy/jsonvalue
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/icholy/jsonvalue
- Owner: icholy
- License: mit
- Created: 2019-08-01T16:37:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-14T14:16:58.000Z (almost 3 years ago)
- Last Synced: 2025-01-30T03:13:20.280Z (6 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON Value
> This package provides a Value type for getting values out of arbitrary json structure
``` go
val := jsonvalue.Parse([]byte(`{ "foo": { "bar": [123, 324, 1] } }`))
num, _ := val.Lookup("foo", "bar").Index(1).Num()
fmt.Println(num)
```