
So CSV output files may sometimes appear rather sparse, or repetitive, if the JSON data is not well suited to a tabular format. While CSV is intended for storing tabular data, JSON data need not be tabular. However, JSON Objects are defined as an unordered collection of data, so the order of the columns in the CSV may not match the order of the Objects in the original JSON file. So JSON Object names become the columns in the CSV and JSON Array elements become the rows in the CSV.

The first line in the output CSV file is a list of the column headers, based on the JSON key names.Įach record of a JSON Array will be placed on a separate record line in the CSV file, and the order of the original array records will be maintained.

SaveJson2CSV will use a separate column for each key name in the JSON file. If text fields need to include quotation marks, they must be doubled.įor example (He said "hello".) must become ("He said ""hello"".") in a CSV file, to be properly read by a spreadsheet program. Text fields may include commas and other formatting, such as line-breaks, provided the text field is surrounded by quotation marks ("."). The CSV file format is not standardised, however we assume the common formatting used by most spreadsheet programs, such as Microsoft Excel or OpenOffice Calc. Read more about CSV formats on Wikipedia. Read more about JSON formats on Wikipedia.Ī comma-separated values (CSV) file stores tabular data (numbers and text) in plain text.Įach line of the file is a separate data record.Īnd each record consists of one or more fields, separated by commas. (Note that from v2.1, users may select alternate custom separator characters, instead of the default comma). It is commonly used for asynchronous browser/server communication, as an alternative to XML. JSON is an open-standard format that uses human-readable text to transmit data objects consisting of attribute-value pairs. SaveJson2CSV is a free tool to convert JSON files to CSV files in a windows GUI. SaveJson2CSV - a free tool to convert JSON files to CSV files.
