Alter json parsing to terminate continuous feed

Also call ibrowse:close_stream when finished