thx / rap2-dolores

MIT License
610 stars 254 forks source link

导入数据貌似有点问题 #7

Closed fengbaozhiling closed 6 years ago

fengbaozhiling commented 6 years ago

试试看,会发现很诡异的事情,会报错,去掉报错后又会发现,无法识别数据的层级,添加后的数据乱了,然后删除字段也无法删除干净

{
    target_url: "/question/getByParams",
    error_infos: [
        {
            code: 500,
            msg: "Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: """,
            details: [],
            validationErrorInfos: null
        }
    ],
    result: [
        {
            "analy": "string",
            "answers": {},
            "content": "string",
            "difficultClass": "SoEasy",
            "id": 0,
            "knowledge": "string",
            "num": 0,
            "questionType": "Single",
            "remark": "string",
            "score": 0,
            "tenantId": 0,
            "updatorId": 0
        }
    ],
    authorized_request: false,
    success: false
}
Bosn commented 6 years ago

您发的不是标准的JSON,字段要以双引号括起来。包括您现在贴的已经出现了红色的语法报错。