jsonparser
A simple json parser built using golang
Installation:
go get -u github.com/krishpranav/jsonparser
Installing the cli tool:
Cli tool:
$ jsonparser -d 1 < test.json
Tutorial:
package main
import (
"fmt"
"os"
"github.com/krishpranav/jsonparser"
)
func main() {
f, _ := os.Open("test.json")
decoder := jsonparser.NewDecoder(f, 1)
for mv := range decoder.Stream() {
fmt.Printf("%v\n ", mv.Value)
}
}