接收JSON异常:JSON parse error: Unexpected character (‘/‘ (code 47)): maybe a (non-standard) comment?

"JSON parse error: Unexpected character ('/' (code 47)): maybe a (non-standard) comment? 
(not recognized as one since Feature 'ALLOW_COMMENTS' not enabled for parser); nested 
exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('/'
 (code 47)): maybe a (non-standard) comment? (not recognized as one since Feature 
 'ALLOW_COMMENTS' not enabled for parser)\n at [Source: (PushbackInputStream); line: 1,
  column: 28]"

这种异常是在postman中注释遇到的
在postman下发送post请求:
接收JSON异常:JSON parse error: Unexpected character (‘/‘ (code 47)): maybe a (non-standard) comment?_第1张图片
这种发送会报出上述异常,把注释去掉再次发送:
接收JSON异常:JSON parse error: Unexpected character (‘/‘ (code 47)): maybe a (non-standard) comment?_第2张图片
请求成功。

你可能感兴趣的:(代码BUG,异常笔记,json)