JSON简介
来源:互联网 发布:三维定位算法 编辑:程序博客网 时间:2024/06/05 19:21
JSON全称JavaScript Object Notation,是一种轻量级的数据存储和传输格式。
JSON简单说就是javascript中的“对象”和“数组”,分别用"{}"和“[]”来修饰,通过这两种结构可以表示各种复杂的结构。
例子:
{ "firstName": "Brett" }
官方网站http://www.json.org/上列举的形式有:
In JSON, they take on these forms:
An object is an unordered set of name/value pairs. An object begins with { (left brace) and ends with } (right brace). Each name is followed by : (colon) and the name/value pairs are separated by , (comma).
An array is an ordered collection of values. An array begins with [ (left bracket) and ends with ] (right bracket). Values are separated by, (comma).
A value can be a string in double quotes, or a number, or true or false or null, or an object or an array. These structures can be nested.
A string is a sequence of zero or more Unicode characters, wrapped in double quotes, using backslash escapes. A character is represented as a single character string. A string is very much like a C or Java string.
A number is very much like a C or Java number, except that the octal and hexadecimal formats are not used.
Whitespace can be inserted between any pair of tokens. Excepting a few encoding details, that completely describes the language.
- JSON 简介
- JSON 简介
- JSON简介
- JSON简介
- JSON简介
- JSON简介
- JSON简介
- JSON简介
- JSON简介
- JSON简介
- JSON简介
- JSON简介
- JSON简介
- JSON简介
- JSON简介
- JSon简介
- json简介
- JSON 简介
- 理解计算机3D图形学中的坐标系变换
- 转贴:让VIM与Ubuntu和睦相处
- 新开通了博客,欢迎大家常来瞧瞧!
- Flatten Binary Tree to Linked List
- eclipse中svn代码冲突解决方案 zz
- JSON简介
- keySet和entrySet
- 直接利用中缀表达式求算术表达式的值(C#)
- ubuntu提升root权限
- 最近看到一个开发神器,IntelliJ学习一下
- android与服务器端交互
- Factstone Benchmark
- VB简单堆栈类的实现
- 欧拉公式,求解小于某数且与该数互质的数的个数