javascript - Parse whole object with JSONStream.parse -


i have incoming json data object structure this:

{     foo: 3,     bar: [              {                  key:value              },              {                  key:value              }          ] } 

i want treat foo 1 way, , bar another. when use jsonstream.parse("*") on object, first chunk receives "3".

since data objet quite small, want streamer return whole object , i'll manipulate it. i'd still use streams consistent rest of project though. how force jsonstream give me whole object?


Comments