CyrusOfEden / CSV.js

A simple, blazing-fast CSV parser and encoder. Full RFC 4180 compliance.
MIT License
1.54k stars 95 forks source link

handle null values in array of objects #14

Closed wulfsolter closed 10 years ago

wulfsolter commented 10 years ago

When encoding:

If an array of objects has null values like key2 in {key1: 'asdf', key2: null, key3: 123} the stringify() function dies trying to regex replace on null.