Skip to content

Commit

Permalink
Update docs, remove fields list, add fields config
Browse files Browse the repository at this point in the history
  • Loading branch information
expatiating authored Nov 2, 2018
1 parent d9e4463 commit 81dd812
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,20 @@ carModel,price,color
"Porsche",30000,"green"
```

Same result will be obtained using passing the fields as a file.
Same result will be obtained passing the fields config as a file.

```bash
$ json2csv -i input.json -l fieldList.txt -o out.csv
$ json2csv -i input.json -c fieldsConfig.json -o out.csv
```

where the file `fieldList.txt` contains
where the file `fieldsConfig.json` contains

```
carModel
price
color
```json
[
"carModel",
"price",
"color"
]
```

#### Read input from stdin
Expand Down

0 comments on commit 81dd812

Please sign in to comment.