Keep the datatypes as is while converting csv to json
I am converting a csv file to json using this library. I am facing the following issue. While converting my integer and float columns are getting converted to string. I do not want to do that.
Input csv file a,b,c 1,2,3 4,5,6
Output which is generated by library [ {a:"1", b:"2", c:"3"}, {a:"4", b:"5". c:"6"} ]
Expected output [ {a:1, b:2, c:3}, {a:4, b:5. c:6} ]
I have the same issue. checkType parameter should solve your case, but it'll still convert "00001" into 1.
The original file is a text file, thus string type comes by default. You can set checkType to true or use the built-in-parsers
Hey I am facing this problem when converting csv to json file Can anybody provide the solution it would be great. Thanks