JSON的ECMA标准发布

JSON (JavaScript Object Notation)作为一种轻量级数据格式,目前已经被广泛的使用。Douglas Crockford在2001年发现并命名了JSON,但是据他自己说,JSON很早就存在,自己只是发现了它而已。2002年Crockford通过json.org公开JSON的具体定义。当时正是XML盛行的年代,但到现在更轻量级、容易解析的JSON已经超越XML被大家广泛使用。

作为标准化组织的ECMA International这次也公开了JSON的定义ECMA-404。Crockford也通过Google+发布了这一消息。

到目前为止关于JSON共有4个公开的定义:

制定过XML规范的Tim Bray在今年9月份发布了一篇博客“Editing JSON”抱怨过JSON的标准:

引用
What I hadn’t realized was that there actually isn’t a standalone anything you can link to and say “This is the JSON spec”; RFC 4627 is just a mime-type registration.

Bray认为RFC 4627关于JSON的定义存在明显的问题:

引用
What the WG can do is fix a couple of errata, document where the stupid things that 4627 allows can lead to breakage, and turn it into a spec, not just a registration doc.
  1. da shang
    donate-alipay
               donate-weixin weixinpay

发表评论↓↓