Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json反序列化时出现多余的\\ #4

Open
5118234 opened this issue May 10, 2019 · 1 comment
Open

json反序列化时出现多余的\\ #4

5118234 opened this issue May 10, 2019 · 1 comment

Comments

@5118234
Copy link

5118234 commented May 10, 2019

在getMenuByRole 方法中反 序列化时
JsonConvert.DeserializeObject<List>(it.btnJson);

it.btnJson中出现多余的\,不知道是什么原因,采用it.btnJson.Replace("\","")才可以用。

@feiyit
Copy link
Owner

feiyit commented May 12, 2019

看下具体字符串的Json结构,是否有子级, 保存数据库是字符串格式,会有
在把字符串转成json需要结构体也转成字符串一样,才行。

具体你可以把代码发给我,我排查下 [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants