json-streamer: add handling for JSON_ERROR token/state