/Users/mfogel/attm/JSONStream/index.js:105
var data = this.value[this.key]
^
TypeError: Cannot read property 'value' of null
at Parser.parser.onValue (/Users/mfogel/attm/JSONStream/index.js:105:26)
at Parser.proto.emit (/Users/mfogel/attm/JSONStream/node_modules/jsonparse/jsonparse.js:337:8)
at Parser.proto.pop (/Users/mfogel/attm/JSONStream/node_modules/jsonparse/jsonparse.js:332:8)
at Parser.proto.onToken (/Users/mfogel/attm/JSONStream/node_modules/jsonparse/jsonparse.js:402:12)
at Parser.parser.onToken (/Users/mfogel/attm/JSONStream/index.js:126:12)
at Parser.proto.write (/Users/mfogel/attm/JSONStream/node_modules/jsonparse/jsonparse.js:137:34)
at Stream.<anonymous> (/Users/mfogel/attm/JSONStream/index.js:21:12)
at Stream.stream.write (/Users/mfogel/attm/JSONStream/node_modules/through/index.js:26:11)
at ReadStream.ondata (_stream_readable.js:642:20)
at ReadStream.emit (events.js:159:13)
The same error results if the values to be retrieved are objects rather than arrays.
Changing the example from the README so that the values that should be retrieved are arrays, rather than numbers:
Running this with
parser = JSONStream.parse(['features', { recurse: true }, 'value'])
results in:The same error results if the values to be retrieved are objects rather than arrays.