csvToJson icon indicating copy to clipboard operation
csvToJson copied to clipboard

Convert CSV file to JSON

Results 19 csvToJson issues
Sort by recently updated
recently updated
newest added

Hi guys I have this CSV file ![image](https://user-images.githubusercontent.com/58422683/157059125-d998f983-1e35-4d17-9ecc-f6274c10af3a.png) The problem is that the text of the ID column is converted as ""ID"" So I will have this json: { "MODULE"...

CSV stands for comma separated values; the default delimiter is comma, not semicolon (even if MS Excel is too stupid to follow the rules); see RFC 4180 The default delimiter...

Next Major Release Candidate

This PR will allow users to map through individual row, similar to `[].map()`. eg: ```javascript const data = csvToJson .fieldDelimiter(",") .map((headers: string[], value: {Amount: number}, index) => { return {...

Hi guys! I found a possible bug. I'm importing a file with approximately 3000 lines, and strangely the result was not interpreted as expected. "Just like Excel", for example. Debugging,...

I have a .csv file with an empty row in the beginning of the file. Upon running the function getJsonFromCsv(), the json object cells contain the following: {: "ID"} {:...

help wanted

Please at what point do I upload the csv file bofore the conversion?

help wanted

Adding index.d.ts for typescript usage Fixes # Adding index.d.ts for typescript usage ## Proposed Changes - Adding index.d.ts for typescript usage - -

Fixes #39 ## Proposed Changes - Add private #index to hold indexHeader value, default 0 - Update indexHeader() - Update getIndexHeader()

## Expected Behavior Should not throw error. ## Actual Behavior ```txt $ node test.js raw/0* 1 ↵ [ { a: 'e', b: 'f' } ] /Users/js/code/private/csv2report/node_modules/convert-csv-to-json/index.js:42 csvToJson.indexHeader(index); ^ TypeError: csvToJson.indexHeader...

## Expected Behavior Interpret and convert line breaks in quoted fields correctly. ## Actual Behavior Unable to convert/parse CSV correctly. Error thrown: `/app/node_modules/convert-csv-to-json/src/csvToJson.js:215 throw new Error('Row contains mismatched quotes!');` ##...

help wanted