use stream-to-json from npm