Questions tagged [csvtojson]
101 questions
0
votes
1 answer
I am getting Cast to date failed for value "Invalid Date" at path while importing CSV to MongoDB
I'm using csvtojson npm package to import csv data to mongodb and I'm getting ValidationError: Contact validation failed: contactdateofbirth: Cast to date failed for value "Invalid Date" at path "contactdateofbirth", dayoftheyear: Cast to Number…

Nat
- 679
- 1
- 9
- 24
0
votes
2 answers
CSV convert to JSON Returning as an empty array
I have an API route in my next.js project, the idea is that it process the stats from an API the company I work for is using. It makes it's way through the whole function without issue until it comes time to convert the CSV to a JSON array, then it…

mac
- 1
- 1
0
votes
2 answers
How to convert csv to Json File Using Node js?
i;m new to node js i need to convert node js file to JSON File it is possible i try
const express = require("express");
const csv = require("csvtojson");
const app = express();
const port = 3000;
const…

Paresh Shiyal
- 19
- 4
0
votes
1 answer
csvtojson how to add rownumber
Novice in node.js here. I am using csvtojson to read a csv into an object fileDataObject, like that:
const csv=require("csvtojson");
csv(
{
delimiter:mq.delim
,trim:false
}
)
…

George Menoutis
- 6,894
- 3
- 19
- 43
0
votes
1 answer
How to convert excel column with json format data to a javascript object?
I have an excel sheet with a column that has data in json format. I want to convert this sheet into json. The other two columns get converted into json but this particular column cannot be treated as a json object and instead results into a string.…

Maharshi
- 106
- 1
- 9
0
votes
1 answer
Returning csv data from multiple files in a directory in JavaScript
I am trying to get data from multiple CSV files using 'csvtojson'.
Acquired the array of file names in a directory.
Ran forEach to get the data from different CSV files in JSON and pushed into a single array.
The problem is I cant send data to the…
0
votes
0 answers
CSVto json client side
I want to connect my csvtojson function to html(client side) but i'm getting some errors. Should i have a listener to the input file ?
One of the errors is require not define. But i have a package.json with require on it
Html code

youngt17
- 55
- 7
0
votes
0 answers
Read single cell of a csv file which has data in JSON format and convert it as a dataframe (columnar) using R
I need to read a csv file, which has one header and one cell of data, which is in JSON format. Need to read the JSON data (from that cell) and convert it into dataframe using R.
Though I found a similar question online, but I do not find a working…

Arun
- 19
- 8
0
votes
1 answer
Configuring openCSV instead of FlatFileItemReader in spring batch step
I am trying to configure openCSV in the reader() step in the spring batch to directly convert a record read from a CSV file into a JAVA POJO. But I am running into the issue of how to correctly set the lineMapper with the openCSV.
As suggested in…

Abhinav
- 43
- 1
- 5
0
votes
0 answers
The method readerFor(Class) is undefined for the type CsvMapper
The source code:
import java.io.File;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import…
0
votes
4 answers
How to get JSON data out of csvtojson scope?
I'm new to Javascript, maybe you can help me understand this. The csvtojson examples here all show logging to the console which works fine:
https://www.npmjs.com/package/csvtojson#from-csv-file-to-json-array
const csvFilePath='

beemo
- 27
- 7
0
votes
3 answers
NodeJS: Async return data from multiple TSV files in loop
I'm trying to read a TSV data into an array and this async function loads the rows just fine, but the rows.push(row) is still delayed when I'm trying to get the rows outside the function.
Is there a way I can get the row data for use outside this…

R Jackson
- 105
- 3
- 13
0
votes
1 answer
Is a promise within a promise the best solution? asynchronous node file read within for loop
The Node.js function below takes:
an object, shop which contains a regular expression
an array of filenames
The function will read each csv file listed in the array and test a cell in the first row with a regular expression, returning a new array…

Max McCarty
- 5
- 3
0
votes
1 answer
Tabulator - CSV to JSON
I would like to know if there will be a way to transform a csv to the JSON format suitable for the Tabulator library?
The idea would be to have a format as seen on excel :
- the first cell on the top left, empty
- columns A, B, C... AA, AB...…

Pristio
- 5
- 1
0
votes
2 answers
Convert CSV to JSON using Azure Logic App
I'm using an Azure Logic App to get Blob contents from my storage account. The Blob-file is in .CSV format. I want to convert the CSV file into JSON.
I'm aware of the third party connectors like Plumsail documents, but they are paid. Is there a…

SD4
- 439
- 10
- 27