JSON Simple Reader
- A JSON array
- Read JSON files with headers and rows
- Don't require an deterministic struct to read
- Headers []string
- Rows map[int]map[string]string
go get github.com/jonathanhecl/jsonreader
import (
"github.com/jonathanhecl/jsonreader"
)
func main() {
data, err := jsonreader.LoadFileJSON("example.json")
// ...
data2, err := jsonreader.ReadJSON("{\"id\":1,\"father\":\"Mark\",\"mother\":\"Charlotte\",\"children\":2}")
// ...
}