Skip to content

Commit d86d4bc

Browse files
committed
add readme update
1 parent 20bf54f commit d86d4bc

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

README.rst

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ cat the raw.json to csv/xls use command line tool
2424

2525
.. code-block:: bash
2626
27-
cat raw.json| jsoncsv | mkexcel > output.csv
28-
cat raw.json| jsoncsv | mkexcel -t xls > output.xls
27+
cat raw.json | jsoncsv | mkexcel > output.csv
28+
cat raw.json | jsoncsv | mkexcel -t xls > output.xls
2929
3030
make sure each line of raw json text file is a json object
3131

@@ -87,7 +87,7 @@ just expand/restore the json, the expand json is one layer json.
8787
8888
jsoncsv raw.json expand.json
8989
jsoncsv -r expand.json raw.json
90-
cat raw.json|jsoncsv |jsoncsv -r > raw2.json
90+
cat raw.json | jsoncsv | jsoncsv -r > raw2.json
9191
9292
mkexcel the expanded json (one layer)
9393

@@ -104,17 +104,17 @@ expand json, 展开 json
104104

105105
.. code-block:: bash
106106
107-
jsoncsv -e raw.json expand.json
108-
cat raw.json expand.json
107+
$jsoncsv -e raw.json expand.json
108+
$cat raw.json expand.json
109109
{"s":[1,2,{"w":1}]}
110110
{"s.2.w": 1,"s.0": 1,"s.1": 2}
111111
112112
113-
{"s":[1,2,{"w":1}]} transformed to {"s.2.w": 1,"s.0": 1,"s.1": 2}
113+
{"s":[1,2,{"w":1}]} will transformed to {"s.2.w": 1,"s.0": 1,"s.1": 2}
114114

115-
expand.json is only one layer json, it can be easy change to csv or xlsx
115+
the output "expand.json" is only one layer json, it can be easy change to csv or xlsx (with `mkexcel`)
116116

117-
-r,--restore
117+
-r, --restore
118118
---------------
119119
restore the expanded json 重构被展开的json
120120

@@ -127,7 +127,7 @@ restore the expanded json 重构被展开的json
127127
128128
{"s.2.w": 1,"s.0": 1,"s.1": 2} change to {"s":[1,2,{"w":1}]}
129129

130-
-s,--separator
130+
-s, --separator
131131
---------------
132132

133133
separator used for combine the keys in the tree
@@ -156,7 +156,7 @@ dump expanded (by **jsoncsv**) json file to csv or xls file
156156
157157
mkexcel expand.json output.csv
158158
159-
-t,--type
159+
-t, --type
160160
--------------
161161

162162
chose dump type in ['csv', 'xls'] default is 'csv'
@@ -191,3 +191,9 @@ wait next next version
191191
-----------------------------------------
192192
193193
but better than python strand library csv.
194+
195+
4. Windows is poor support
196+
-----------------------------------------
197+
see https://github.com/alingse/jsoncsv/issues/37
198+
199+
try use https://jsoncsv.jsonutil.online/ instead

0 commit comments

Comments
 (0)