diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-15 14:02:21 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-15 14:02:21 +0900 |
| commit | 4be19ce7a25173fdabeb75ff5fd6c68f802612dc (patch) | |
| tree | 6e5b64e5b3b5f352d15772caf25780cdfe19dba0 | |
| parent | a245b635c9099448a00eea15cec5bc61dcf1d026 (diff) | |
| download | reparojson-4be19ce7a25173fdabeb75ff5fd6c68f802612dc.tar.gz reparojson-4be19ce7a25173fdabeb75ff5fd6c68f802612dc.tar.zst reparojson-4be19ce7a25173fdabeb75ff5fd6c68f802612dc.zip | |
chore: add readme
| -rw-r--r-- | README.md | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..e6635ba --- /dev/null +++ b/README.md @@ -0,0 +1,41 @@ +# ReparoJSON + +A simple command-line tool to "repair" JSON. It only fixes the syntactic errors and never formats the given input. + + + +## Usage + +``` +Usage: reparojson [OPTIONS] [FILE] + +Arguments: + [FILE] The input JSON file (default: STDIN) + +Options: + -q, --quiet Successfully exit if the input JSON is repaired + -h, --help Print help + -V, --version Print version +``` + + +## Examples + +``` +$ echo '[ 1 2 ]' | reparojson +[ 1, 2 ] + +$ echo '[ 1, 2, ]' | reparojson +[ 1, 2 ] + +$ echo '{ "foo": 1 "bar": 2 }' | reparojson +{ "foo": 1 ,"bar": 2 } + +$ echo '{ "foo": 1, "bar": 2, }' | reparojson +{ "foo": 1, "bar": 2 } +``` + + +## License + +See (LICENSE)[./LICENSE]. |
