Skip to content

Commit 0619617

Browse files
committed
Merge pull request #10 from jmhodges/one_readme
add -s to the README
2 parents a3e37f3 + e33b159 commit 0619617

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ Pretty print web service responses like so:
99

1010
and make beautiful the files running around on your disk:
1111

12-
jsonpp data/long_malformed.json
12+
jsonpp testdata/multiple/multiple.json
13+
14+
You can also format previously pretty-printed code with "-s":
15+
16+
jsonpp -s testdata/one/singular.json
1317

1418
Install
1519
-------
@@ -24,9 +28,4 @@ Options
2428
The string used for indentation defaults to 2 spaces, but can be overridden
2529
by the environment variable `JSONPP_INDENT`.
2630

27-
Special Note on JSON files
28-
--------------------------
29-
30-
`jsonpp` assumes that there are one or more JSON objects in a given file,
31-
seperated by newlines.
32-
31+
Adding the "-s" parameter will allow you to format already formatted JSON code by assuming the entire input stream is one JSON object.

0 commit comments

Comments
 (0)