DonutEspresso / big-json

A stream based implementation of JSON.parse and JSON.stringify for big POJOs
MIT License
114 stars 9 forks source link

Support for Array #19

Open MichaelHirn opened 4 years ago

MichaelHirn commented 4 years ago

Parsing the following array (string)

JSON.stringify([{key: 'value'}, {key: 'value'}])

will return

{ '0': { key: 'value' }, '1': { key: 'value' } }

but expected it to be

[{key: 'value'}, {key: 'value'}]