Skip to content

jnafolayan/json-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages