https://github.com/krishpranav/jsonparser
A simple json parser built using golang
https://github.com/krishpranav/jsonparser
go go-library go-package golang json linux macos parser windows
Last synced: 3 months ago
JSON representation
A simple json parser built using golang
- Host: GitHub
- URL: https://github.com/krishpranav/jsonparser
- Owner: krishpranav
- License: apache-2.0
- Created: 2021-12-29T09:51:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-29T11:15:54.000Z (over 4 years ago)
- Last Synced: 2025-03-04T13:46:26.636Z (over 1 year ago)
- Topics: go, go-library, go-package, golang, json, linux, macos, parser, windows
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jsonparser
A simple json parser built using golang
## Installation:
```
go get -u github.com/krishpranav/jsonparser
```
## Installing the cli tool:
- [macOS](https://github.com/krishpranav/jsonparser/releases/download/v1/macOS.zip)
- [windows](https://github.com/krishpranav/jsonparser/releases/download/v1/windows.zip)
- [linux](https://github.com/krishpranav/jsonparser/releases/download/v1/linux.zip)
## Cli tool:
```bash
$ jsonparser -d 1 < test.json
```
## Tutorial:
```golang
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)
}
}
```
## Author:
- [krishpranav](https://github.com/krishpranav)