README ¶ go-json Improve the way of creating JSON data structures in Go. I use it heavily when writing queries for ElasticSearch. import . "github.com/pakohan/go-json" … obj := O{ "nested": O{ "key1": "test", "key2": O{"anotherKey": "value"}, "uselessArray": A{"A", "B", "C"}, }, } Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type A type O Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type A ¶ type A []interface{} A is a JSON array type O ¶ type O map[string]interface{} O is a JSON object Source Files ¶ View all Source files json.go Click to show internal directories. Click to hide internal directories.