Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/icholy/jsonvalue


https://github.com/icholy/jsonvalue

Last synced: 1 day ago
JSON representation

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)
```