Skip to content

Commit

Permalink
Update JSONStyleGuide.md
Browse files Browse the repository at this point in the history
unicode
  • Loading branch information
CatInRl committed Jul 14, 2013
1 parent 0e10032 commit 4234b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JSONStyleGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ JSON中的数据元素应以*扁平化*方式呈现。不能为了方便而将

当JSON对象作为Map(映射)使用时,属性的名称命名规则并不适用。Map(也称作关联数组)是一个具有任意键/值对的数据类型,这些键/值对通过特定的键来访问相应的值。JSON对象和JSON Map在运行时看起来是一样的;这个特性与API设计相关。当JSON对象被当作map使用时,API文件应当做出说明。

Map的键名不一定要遵循属性名称的命名准则。键名可以包含任意的Uincode字符。客户端可使用maps熟悉的方括号来访问这些属性。(例如`result.thumbnails["72"]`
Map的键名不一定要遵循属性名称的命名准则。键名可以包含任意的Unicode字符。客户端可使用maps熟悉的方括号来访问这些属性。(例如`result.thumbnails["72"]`

{
// "address" 属性是一个子对象
Expand Down Expand Up @@ -1099,4 +1099,4 @@ report form的URI,服务用它来收集错误状态的数据。该URL会预先

除了特别[说明](http://code.google.com/policies.html),该页面的内容均由[共同创作协议](http://creativecommons.org/licenses/by/3.0/)(CC BY 3.0)授权许可,示例代码均由[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)许可证授权许可)

-EOF-
-EOF-

0 comments on commit 4234b55

Please sign in to comment.