JSON to CSV
Use this tool for free and dont forget to our website seoUY.com
More Details
Your JSON input should contain an array of objects consistings ofname/value pairs. It can also be a single object of name/value pairs or a single object with a single property with an array of name/value pairs. It can also be in JSONLines/MongoDb format with each JSON record on separate lines. You can also identify the array using Javascript notation. You can also force double quotes around each field value or it will be determined for you. The output CSV header row is optional.
This function is available as a npm package. JSON to CSV will convert an array of objects into a table. By default, nested arrays or objects will simply be stringified and copied as is in each cell. Alternatively, you can flatten nested arrays of objects as requested by Rogerio Marques in GitHub issue #3. CSV stands for Comma Separated Values. Often used as an interchange data format to represent table records, one per line. CSV is plain text. TSV or Tab Separated Values is used to store table data in the Clipboard. You can then copy (Ctrl+C) and paste (Ctrl+V) it into Excel. In French, Excel will expect a semi-colons ; instead of a comma ,. Make sure to pick that option if you are going to import the CSV file in Excel. CSV values are plain text strings. Dror Harari proposed a variant called CSVJSON (csvjson.org). The variant proposes that every CSV value be a valid JSON value. More specifically, objects and arrays would not be wrapped in double quotes but output as is. Toggle the switch Output CSVJSON variant to output that format. CSVJSON format variant is not valid CSV however every value is valid JSON. Parsing CSVJSON is done by processing one line at a time. Wrap a line with square brackets [] and use JSON.parse() to convert to a JSON array. To convert from CSVJSON back to JSON, use the companion tool CSVJSON to JSON. Dror Harari: "The reason why I came up with CSVJSON was not to allow embedding of JSON objects in a CSV line, that's a nice benefit but my main reason was to have the very well defined encoding semantics of JSON (as per json.org) be used to describe CSV lines (just taking out the [ and ])."