
Filter stream that enforces only selected JSON object string elements exist and that they exist in order.
Install
npm install json-expected-stream
Usage
Sample logfile.json
line:
"ip": "198.55.125.23" "timestamp":"2014-02-24 10:29:42" "url": "http:\/\/somedomain.com"
var fs = ;var logstream = fs;var split = 'split';var JsonExpectedStream = ;var expectedStream = "url" "city" "timestamp" ; logstream // {"url": "http:\/\/somedomain.com", "city": null, "timestamp":"2014-02-24 10:29:42"}