Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

csvString to json

/*csv string
column1,column2
hello,1234
*/
csv({
    colParser:{
        "column1":"omit",
        "column2":"string",
    },
    checkType:true
})
.fromString(csvString)
.subscribe((jsonObj)=>{
    //jsonObj: {column2:"1234"}
})
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #csvString #json
ADD COMMENT
Topic
Name
6+6 =