ECMA发布JSON标准定义(ECMA-404)

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

作为标准化组织的ECMA International这次也公开了JSON的定义[url=http://www.ecma-international.org/publications/standards/Ecma-404.htm]ECMA-404[/url]。Crockford也通过Google+发布了这一消息。
[img]http://dl2.iteye.com/upload/attachment/0090/1878/c57e3962-b936-323c-b221-8bc5c05e0c99.png[/img]

到目前为止关于JSON共有4个公开的定义:
[list]
[*][url=http://json.org/]json.org[/url]
[*][url=http://www.ietf.org/rfc/rfc4627.txt]IETF RFC 4627[/url]
[*][url=http://www.ecma-international.org/ecma-262/5.1/#sec-5.1.5]ECMAScript 5.1 - Section 5.1.5 The JSON Grammar[/url]
[*][url=http://www.ecma-international.org/publications/standards/Ecma-404.htm]ECMA-404[/url]
[/list]

制定过XML规范的Tim Bray在今年9月份发布了一篇博客“[url=http://www.tbray.org/ongoing/When/201x/2013/09/18/Editing-JSON]Editing JSON[/url]”抱怨过JSON的标准:
[quote]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.[/quote]

Bray认为RFC 4627关于JSON的定义存在明显的问题:
[quote]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.[/quote]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值