微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

JSON Parser jQuery的JSON插件

程序名称:JSON Parser

授权协议: 未知

操作系统: 跨平台

开发语言: JavaScript

JSON Parser 介绍

This plugin makes it simple to convert to and from JSON.

Most people asked me why I would want to do such a thing, which boggles my
mind. Javascript makes it relatively easy to convert from JSON, thanks to
eval(), but converting to JSON is supposedly an edge requirement.

This plugin exposes four new functions onto the $, or jQuery object:

  • toJSON : Serializes a javascript object, number, string, or arry into JSON.
  • evalJSON : Converts from JSON to Javascript, quickly, and is trivial.
  • secureEvalJSON : Converts from JSON to Javascript, but does so while checking to see if the source is actually JSON, and not with other Javascript statements thrown in.
  • quoteString : Places quotes around a string, and inteligently escapes any quote, backslash, or control characters.

JSON Parser 官网

http://plugins.jquery.com/project/json

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐