.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
}
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_33391499/article/details/105359481
今日推荐