您是否在本机JSON实现中发现任何错误? [英] Have you found any bugs in Native JSON implementations?

查看:98
本文介绍了您是否在本机JSON实现中发现任何错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在当前的本地JSON实现批处理中发现了哪些错误(如果有)?

What bugs, if any, have you found in the current batch of native JSON implementations?

仅供参考-这是本地json错误的集中存储库.

FYI - this is meant to be a sort of central repo of native json bugs.

我认为这很重要的原因是,事实上的标准json2.js如果找到本机实现,则不会自行安装,因此识别本机错误至关重要,以便您可以决定是否强制使用json2如果错误影响您的代码,则可以覆盖本机.

The reason I feel this is important is that the de-facto standard, json2.js, does not install itself if it finds a native implementation, so it is crucial to identify native bugs so that you can decide whether to force json2 to overwrite native if a bug affects your code.

推荐答案

Chrome浏览器具有JSON.stringify的JavaScript实现,而不是原生的,因此它实际上比JSON.org上的JS慢(尽管处理更多的优势)情况).

Chrome has a JavaScript implementation of JSON.stringify, instead of a native one, so it's actually slower than the JS one on JSON.org (although handles more edge cases).

http://code.google.com/p/chromium /issues/detail?id = 22718

这篇关于您是否在本机JSON实现中发现任何错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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