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.
Clone the repo
git clone github.com/jnafolayan/json-parser
cd json-parserBuild the jp cli
go build -o jp ./cmd/jpIf 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"]'