首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > JavaScript > 一个快速的JavaScript JSON解析器不使用eval

一个快速的JavaScript JSON解析器不使用eval

  • 资源大小:1.53 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: javascript json parser RFC4627

资 源 简 介

A fast and secure JSON parser in JavaScript This JSON parser does not attempt to validate the JSON, so may return a surprising result given a syntactically invalid input, but it does not use eval so is deterministic and is guaranteed not to modify any object other than its return value. There are a number of JSON parsers in JavaScript at json.org. This implementation should be used whenever security is a concern (when JSON may come from an untrusted source), speed is a concern, and erroring on malformed JSON is not a concern. | | Pros | Cons | |:-----------------------|:---------------------------|:--------------------------| | This implementation | Fast, secure | Not validating | | json_parse.js | Validating, secure | Slow
VIP VIP
0.189217s