Skip to content

Latest commit

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Why

The major objective of this tool was to parse a JSON text without loading all of it into memory. However, a syntax tree is still constructed for any later inferences.

Build

Clone the repo

git clone github.com/jnafolayan/json-parser
cd json-parser

Build the jp cli

go build -o jp ./cmd/jp

Usage

If using the compiled cli

# Parse a JSON file
jp file.json
# Supply a raw JSON text
jp -raw '["hello world"]'

Otherwise, run the program

# Parse a JSON file
go run cmd/jp/main.go file.json
# Supply a raw JSON text
go run cmd/jp/main.go -raw '["hello world"]'

About

JSON validator written in Go

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages