如何转义JSON字符串? [英] How to escape JSON string?

查看:140
本文介绍了如何转义JSON字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何类/函数可用于简单的JSON转义?我不想写我自己的。

解决方案

你可能想查看在MSDN上的.Net中的JSON简介,JsonConvert类从 JayRock JSON



作为附注,我们使用Jayrock为我们所有的Json我们的产品用途。


Are there any classes/functions available to be used for easy JSON escaping? I'd rather not have to write my own.

解决方案

You may want to check out An Introduction to JSON in .Net on MSDN, and the JsonConvert class from JayRock JSON.

As a side note, we use Jayrock for all our Json purposes for our products.

这篇关于如何转义JSON字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆