Json学习笔记

JSON —> JavaScript Object Notation, 一种轻量级的数据交换格式。

一、JSON的形式:

              1)对象Object。无序的“名称/值对集合”。{name1:value1, name2:name2, key3:name3}

                name为string。

 

              2)数组Array。值的有序集合。[value1, value2,value3]    

 

 

二、值 value

       双引号括起来的字符串string、数值number、true、false、null、对象object或者数组array。允许嵌套。

三、JSON文本是一系列遵循JSON value语法的Unicode符号。

      JSON符号包括6种结构符号、strings、numbers和3中名称符号。

      结构性符号(6种):[  {  ]  }  :  ,

      文本名称符号(3种):true  false  null

四、JSON只有一种数字形式,即number,这样便于不同编程语言间数据交换。

       JSON is agnostic about numbers. In any programming language, there can be a variety of number types of various capacities and complements, fixed or floating, binary or decimal. That can make interchange between different programming languages difficult. JSON instead offers only the representation of numbers that humans use: a sequence of digits. All programming languages know how to make sense of digit sequences even if they disagree on internal representation. That is enough to allow interchange.

 

参考资料: 1、JSON官网介绍 http://www.json.org/json-zh.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值