开发者

JSON prepare with .Net 2.0

I am limited to .Net 2.0 framework. How can I replace all invalid characters in a string? I am building a string array in JSON format and outputting it to the screen.

I tried using .Replace 开发者_如何学Goto get rid of the characters I know cause problems (like \n, \, [, ], {, }), but errors persist.


I've had a similar problem and ended up using System.Net.Json.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜