显然,jQuery能够将给定的对象或字符串解码为JSON对象.但是,我有一个需要回发到服务器的JS对象,并且我在jQuery中找不到包装JSON.stringify()函数的实用程序.该函数可以在Chrome、Safari4、FF3.6和IE8中找到,但在更早的浏览器中找不到.我可以在支持它的浏览器中本地使用它,但除此之外,我不得不退回到使用Crockford的JSON脚本.
Is there some built-in with jQuery that handles JSON encoding and decoding that takes the place of the Crockford scripts?