.net core 因路径原因导致的JSON解析错误
因解析json配置文件导致的错误:
JsonReaderException: '0xEF' is an invalid escapable character within a JSON string. The string should be correctly escaped. LineNumber
如何解决?
{
"path":"D:\工作资料\技术资料"
}
改为
{
"path":"D:\\工作资料\\技术资料"
}