// raw 是否返回数据,默认返回 Booleanexport function isJson(value, raw) {if (typeof value !== 'string') {return value && typeof value === 'object';}try {const res = JSON.parse(value);if (isObject(res) || Array.isArray(res)) {return raw ? res : true;}return false;} catch (e) {return false;}}
