naive implementation of json filtering stream