porteusconf / json2csv

Convert json to csv with column titles
http://zemirco.github.io/json2csv
MIT License
0 stars 0 forks source link

In cli examples --config fieldsConfig.json needs { "fields": ["color", "model"] } not just ["color", "model"] #1

Open porteusconf opened 3 years ago

porteusconf commented 3 years ago

Just change in examples for cli json2csv --config option.

porteusconf commented 3 years ago

In closed 456#issuecomment-618741944 it mentioned:

{
"fields": ["product","price","color"]
}

The json file can have multiple lines as well...

{"fields": 
  [
    "color",
    "price"
  ]
}  
porteusconf commented 3 years ago

Instructions

Please follow the instructions below so we can help you best.

Before filing an issue

  1. Make sure there isn't already an issue present, i.e. you can search the issues.
  2. Make sure it's not an issue with your data. Check the validity of your JSON using something like http://jsonlint.com
  3. Make sure you're using the latest version of json2csv (your issue might already be resolved).
  4. Know what's wrong? Submit a Pull Request instead with a failing test and/or a fix.

Filing an issue

  1. Include the version of json2csv used.
  2. Include your node version/browser vendor and version.
  3. Include the command or code you used.
  4. Include a sample dataset that we can test against.
  5. Include your output/error.