How to import csv and convert it into Json and keys changes according to requirement

1,686 views
Skip to first unread message

nitins...@gmail.com

unread,
Aug 23, 2014, 1:53:45 AM8/23/14
to ang...@googlegroups.com
How to import csv and convert it into Json and keys changes according to requirement

Mark Volkmann

unread,
Aug 25, 2014, 2:38:04 PM8/25/14
to ang...@googlegroups.com
I am doing this with a jQuery plugin at http://papaparse.com and it's working great. Once you get the string of CSV, you do this:

var result = $.parse(csvString);

Then check result.errors.length. If it's not zero then something must have been wrong with the CSV and it couldn't be parsed. Otherwise you will have an array of objects created from the CSV in result.results.rows.


On Sat, Aug 23, 2014 at 12:53 AM, <nitins...@gmail.com> wrote:
How to import csv and convert it into Json and keys changes according to requirement

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.



--
R. Mark Volkmann
Object Computing, Inc.

Kartik Sagar

unread,
Aug 19, 2016, 5:40:42 AM8/19/16
to AngularJS, r.mark....@gmail.com
Could you please provide anything done in AngularJS? :)
Reply all
Reply to author
Forward
0 new messages