Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

parsing array data #8

Closed
gitfy opened this issue Feb 28, 2012 · 2 comments
Closed

parsing array data #8

gitfy opened this issue Feb 28, 2012 · 2 comments

Comments

@gitfy
Copy link

gitfy commented Feb 28, 2012

Hi,
In my usecase, the request data arrives as an array of objects. Because of this i cannot define a pattern. Is it possible to parse the stream on the fly and get one item at a time, so that i don't go high on memory foot print.

Thanks.

@dominictarr
Copy link
Owner

it sounds like what you want is:

var items = JSONStream.parse([/./])

that will get you each item in the array.

@gitfy
Copy link
Author

gitfy commented Mar 1, 2012

Thanks

@gitfy gitfy closed this as completed Mar 1, 2012
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants