JSON-JavaScript Object Notation is a lightweight data-interchange format.It is easy for humans to read and write.It is easy for machines to parse and generate.It is based on a subset of JavaScript Language.
JSON is a text format that is completely language independent but uses convention that is familiar to the programmars of the c-family language,including c, c++, java,perl,python ,javascript and many others.These properties make the JSON an ideal data interchange language.
JSON is built on two structures:
1. A collection of name/value pairs.
2. A ordered list value.( List,Vector, ArrayList)
These are universal data structures. Virtually all modern programming languages support them in one form or another. It makes sense that a data format that is interchangable with programming languages also be based on these structures.
var array = eval("[1,2,3]");
array[0]; // 1
array[1]; // 2
array[2]; // 3
function showJSON() {
var user =
{
"username":"andy",
"age":20,
"info": { "tel": "123456", "cellphone": "98765"},
"address":
[
{"city":"beijing","postcode":"222333"},
{"city":"newyork","postcode":"555666"}
]
}
alert(user.username);
alert(user.age);
alert(user.info.cellphone);
alert(user.address[0].city);
alert(user.address[0].postcode); }
will focus on the json for details
分享到:
相关推荐
My story Virtual Resume/Work experience (expand option if possible) - simple table with years worked / location / picture / title / short summary Interests - ski icon / swim icon / dog icon / coding...
本教案以小学英语听力课程《My day》为内容,旨在通过全英文的试讲方式,帮助学生掌握时间表达,提升听力技巧,并能自由地用时间表达法描述自己的一天。以下是根据提供的文件内容,详细阐述的关键知识点: 1. 教学...
- 过去进行时则表示在过去某一时间点或时间段内正在进行的动作,如"I was doing my homework when you met me." 4. 选词填空: - 在具体时间前用介词"On",所以正确答案是B. On。 - "too"用于肯定句的句尾,表示...
I just want to add to this based on my common sense approach on the present financial crisis, which has developed after his book Creating a World Without Poverty was written. Both governments and ...
Here is a summary of all changes that have been made in each version of BurnInTest. Release 5.3 build 1035 revision 4 WIN32 release 10 November 2008 - Lenovo China specific build. Lenovo system ...
on the happenings in the chapter and their importance for future work. Most chapters suggest some exercises; however, they are not spelled out formally, because I firmly believe that one should ...
- Give me a summary of your current job description. - 对你目前的工作,能否做个概括的说明? **回答示例:** - I have been working as a computer programmer for five years. To be specific, I do system ...
Contents Chapter 1: The Microsoft Developer Studio The Microsoft Developer Studio The Project Workspace Project Workspace Window Project Configurations ...Taking Credit for the Work of ...
1. Teacher displays the title "My First Ride on a Train" and briefly introduces the topic. 2. Students are shown the new vocabulary words (abandoned, camels, cloud, etc.) through pictures and ...
> > result, I am assuming that the above is a summary of the state of an Mbox > > which you currently have access to and would be willing to test under FFADO. > > Is this correct? > Yes a friend gave ...
如果被问到:“Give me a summary of your current job description.”,你应该清晰地解释你的工作内容,如:“I have been working as a computer programmer for five years. To be specific, I do system ...
- 重点句型:This is my ⋯ Touch your ⋯ 这两个句型的实践。 9. **Homework**: - 创意作业:用橡皮泥制作小男孩模型,并用英语指出五官,将课堂知识应用于生活场景。 - 复习与讲述:复习Bill和猴子的故事,...
**问题:** Are you a multi-tasked individual or do you work well under stress or pressure? **回答:** Yes, I think so. The trait is needed in my current (or previous) position and I know I can handle ...
- “With my internship experience, I am confident that I can get on with work well quickly.” **解析**:评价自己的专业能力时,可以从教育背景、实习经历等方面入手,展现出自信和积极的态度。重点是强调...
**工作报告(Work Summary):** 工作报告是对整个工作期间的全面总结,包括遇到的挑战、解决问题的方法、学习的新技能以及未来的工作计划。如"Because I want to change my working environment",这部分可以讲述...
**问题:** Give me a summary of your current job description. **回答示例:** I have been working as a computer programmer for five years. To be specific, I do system analysis, troubleshooting, and ...