Welcome to the jQuery-CSV Basic Usage Demonstration

On the adjacent tabs, you will find examples demonstrating the usage of the jQuery-CSV library.

Samples datasets will be provided with each example but if you want, you may insert your own data. Just press the 'Run' button to re-execute the parser.


The main project page can be found on Google Code

If you want the complete documentation. Goto: API Wiki

If you would like to provide feedback, you may do so on the Feedback Wiki.

If you find a bug, report a 'Defect' in the Issues section of the project site.

If you have a suggestion for a new feature, create a 'Feature Request' in the Issues section of the project site.


Enjoy...

$.csv.toArray()

Used to parse a single line of CSV data into an array of values.

Usage:

var result = $.csv.toArray(input);


Input Data:


Result:

$.csv.toArrays()

Used to parse multi-line CSV data into a JavaScript 2D (two-dimensional) array.

Usage:

var result = $.csv.toArrays(input);


Input Data:


Result:

$.csv.toObjects()

Used to convert multi-line CSV data into an array objects containing the data as key-value (ie header:value) pairs.

Usage:

var result = $.csv.toObjects(input);


Input Data:


Result:

$.csv.fromArrays()


This feature has not been implemented yet

If you would like to track the development progress on this feature, take a look at the project Roadmap

$.csv.fromObjects()


This feature has not been implemented yet

If you would like to track the development progress on this feature, take a look at the project Roadmap