added missing outputjson option specification (flush, append)