Javascript

json异常: Unexpected character ('/' (code 47)): maybe a comment?

本文主要是介绍json异常: Unexpected character ('/' (code 47)): maybe a comment?,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

执行

java -jar ./moco-runner-1.1.0-standalone.jar http -p 8888 -c startupGet.json

的时候报错json异常:ERROR 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 pars er)

这时候检查一下自己的json文件中是否有注释,如果有注释,就赶紧去掉注释。再次执行即可

这篇关于json异常: Unexpected character ('/' (code 47)): maybe a comment?的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!