README ¶ gjson - Fast JSON Parser written in pure Go Installation $ go get -u github.com/yagi5/gjson Usage package main import ( "fmt" "github.com/yagi5/gjson" ) func main() { js := `{ "key": "a", "key2": [1, "a", true, null] }` jsMap, err := gjson.Decode([]byte(js)) if err != nil { panic(err) } for key, val := range jsMap { fmt.Println(key) fmt.Println(val) } } // Output // key // a // key2 // [1 a true nil] Lisence MIT Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Decode(data []byte) (val map[string]interface{}, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decode ¶ func Decode(data []byte) (val map[string]interface{}, err error) Decode returns parsed json object. arg must be started "{" and valid as JSON. Types ¶ This section is empty. Source Files ¶ View all Source files gjson.go Click to show internal directories. Click to hide internal directories.