"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.jsonParse=jsonParse,exports.jsonRespParse=jsonRespParse;const tslib_1=require("tslib"),log=tslib_1.__importStar(require("./log"));function jsonParse(r){try{return JSON.parse(r)}catch(e){throw log.info("jsonParse error, input string:"),log.info(r),e}}function jsonRespParse(r,e=""){try{return JSON.parse(r)}catch(s){throw log.info(`CGI[${e}] response parse error, response body: ${r}`),s}}