.Net Core報錯"'0x0A' is invalid within a JSON string. The string should be correctly "原因就是沒加引號

今天一個測試小姐姐測我的接口,發現了一個錯,乍一看還以爲是模型驗證的問題。實際上是她傳參的問題。一個參數少加了一個引號。

{
“Message”: “‘0x0A’ is invalid within a JSON string. The string should be correctly escaped. Path: $.EnterpriseSerial | LineNumber: 1 | BytePositionInLine: 40.”,
“Code”: 10001
}
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章