From 81dd812c6291bd96193d8e26391b37e4eed515f3 Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Nov 2018 10:56:12 -0700 Subject: [PATCH] Update docs, remove fields list, add fields config --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d56c3b46..e738914e 100644 --- a/README.md +++ b/README.md @@ -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