Angular Library to convert CSV to JSON array.
npm install ngx-csvto-jsonThis project was generated with Angular CLI version 10.0.5.
!CSV Format => !JSON Format
> npm i ngx-csvto-json --save
NPM Package Link
import NgxCSVtoJSONModule in app.module.ts file.
app.module.ts
``javascript`
import {NgxCSVtoJSONModule} from 'ngx-csvto-json';
imports: [
NgxCSVtoJSONModule
]
javascript
convert(objArray){
console.log(objArray);
}
onError(err){
console.log(err);
}
`
app.component.html
`html
`CONVERTED RESULT FORMAT
Result format will be in
`javascript
finalobj= {
properties: [],
result: []
};
``