Skip to content

A hobby project to write JSON parser from the scratch

License

Notifications You must be signed in to change notification settings

togatoga/monkey-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monkey-json

RustでJSONパーサーをフルスクラッチで実装する

monkey-json project is just for fun. I want to write JSON parser from the scratch.
The implementation of monkey-json conforms to RFC8259 as possible as I can.
I disregarded some rules on RFC8259. Because It's super boring to keep consistency with them(especially Number).

You can use monkey-json as a command line tool(mj).

mj

mj is a command line JSON minimum prettier like jq .

Alt Text

install

cargo install --git https://github.com/togatoga/monkey-json

How to

% mj --help                                                       
mj - command line JSON minimum prettier
USAGE:
      mj [OPTIONS...] [FILE] [OPTIONS...]
ARGS:
     <FILE> A JSON file
OPTIONS:
       -h,--help      Print help information
       -c,--color     Color JSON output
       -m,--minimize  Minimize JSON output
# basic
% echo '{"key": "value"}' | mj   
{
   "key": "value"
}
# `-c` or `--color`
% mj --color example.json
# `-m` or `--minimize`
% mj --minimize example.json

About

A hobby project to write JSON parser from the scratch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages