File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ Pretty print web service responses like so:
99
1010and 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
1418Install
1519-------
@@ -24,9 +28,4 @@ Options
2428The string used for indentation defaults to 2 spaces, but can be overridden
2529by 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.
You can’t perform that action at this time.
0 commit comments