JSON与JS的区别以及转换
JSON是什么?(JSON和JavaScript对象有什么区别?)如何把JS对象转化为JSON字符串,又如何把JSON字符串转化为JavaScript对象?
JSON (JavaScript Object Notation)一种简单的数据格式,比xml更轻巧。 JSON 是 JavaScript 原生格式, 这意味着在JavaScript 中处理 JSON 数据不需要任何特殊的 API 或工具包。JSON的规则很简单: 对象是一个无序的“名称/值”对集合。一个对象以“{”(左括号)开始,“}”(右括号)结束。每个“名称”后跟一个“:”(冒号);“名称/值”对之间 使用“,”(逗号)分隔。
它是一种严格的js对象的格式,JSON的属性名必须有双引号,如果值是字符串,也必须是双引号;
可以这么说:JSON对象就是一种严格的JS对象,但是JS对象不一定是JSON对象。(JS对象的键可以带单引号,双引号或者不带引号,JSON键也必须带双引号)。
JSON与JS转换说的是JSON字符串与JSON对象(也就是JS对象)的转换。
JSON字符串通过eval可以转换为JSON对象(也就是一种JS对象)。
JSON字符串将JSON对象装成字符串: '{"width":100,"height":200,"name":"rose"}'
JSON只是一种数据格式(或者叫数据形式);
<script>
var obj2={};//这只是JS对象
var obj3={width:100,height:200};/*这跟JSON就更不沾边了,只是JS的 对象 */
var obj4={'width':100,'height':200};/*这跟JSON就更不沾边了,只是JS的对象 */
var obj5={"width":100,"height":200,"name":"rose"}; /*我们可以把这个称做:JSON格式的JavaScript对象 */
var str1='{"width":100,"height":200,"name":"rose"}';/*我们可以把这个称做:JSON格式的字符串 */
var a=[
{"width":100,"height":200,"name":"rose"},
{"width":100,"height":200,"name":"rose"},
{"width":100,"height":200,"name":"rose"},
];
/*这个叫JSON格式的数组,是JSON的稍复杂一点的形式 */
var str2='['+
'{"width":100,"height":200,"name":"rose"},'+
'{"width":100,"height":200,"name":"rose"},'+
'{"width":100,"height":200,"name":"rose"},'+
']' ;
/* 这个叫稍复杂一点的JSON格式的字符串 */
</script>
JSON和JS对象区别对比表
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkAAAAIeCAIAAADcfCfmAAAgAElEQVR4nO2dzbnyPK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18KVEwAAAABJRU5ErkJggg==" alt="" />
总而言之你可以理解为JSON是JS下的一种数据格式,他从属于JS,并且在处理JSON数据时可直接使用JS内置API
JSON实例
{
"sites": [
{ "name":"菜鸟教程" , "url":"www.runoob.com" },
{ "name":"google" , "url":"www.google.com" },
{ "name":"微博" , "url":"www.weibo.com" }
]
}
JSON - 转换为 JavaScript 对象
JSON 文本格式在语法上与创建 JavaScript 对象的代码相同。
由于这种相似性,无需解析器,JavaScript 程序能够使用内建的 eval() 函数,用 JSON 数据来生成原生的 JavaScript 对象
---------------------------------JSON对象(也是一种JS对象)-----------------------------------
下面这个是JSON对象:
键必须为双引号
var json={
"key1":"value1",
"address":{"name":"北京","code":205},
"chengji":[{"name":"物理","chengji":90},{"name":"数学","chengji":100}]
};
alert(json.key1);//value1
alert(json.address.code);//205
alert(json.chengji[0].name+json.chengji[0].chengji);//物理90
注意:对象格式和数组格式可以互相嵌套
注意:json的key是字符串,且必须是双引号,不能是单引号
json的value是Object
json的解析:
json是js的原生内容,也就意味着js可以直接取出json对象中的数据
----------------------------------------JSON语法格式的JS对象---------------------------------
键可以带单引号、双引号或不带引号
//JSON语法的JS对象
var p = {
'name': '张三',
"sex": '男',
age: 20,
info: function() {
alert("这是函数格式!");
},
son: {
name: '张三儿子'
}
}
alert(p);
p.info();
alert(p.son.name);
例子:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <head>
<title>json01</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head> <body>
<ul>
<li id="bj" name="beijing">北京</li>
</ul>
</body> <script language="JavaScript">
//JSON格式的JS对象(可以直接取值)
var data = {
"name": "runoob",
"alexa": 10000,
"site": "www.runoob.com"
};
document.write(data.name + "<br/>");
//将JSON字符串转为JS对象的方法一
var obj = JSON.parse('{ "name":"runoob", "alexa":10000, "site":"www.runoob.com" }');
document.write(obj.name + "<br/>");
//将JSON字符串转为JS对象的方法二
//JSON格式的字符串
var test1 = '{"name":"qlq","age":25}';
var obj2 = eval("(" + test1 + ")"); //必须带圆括号
document.write(obj2.name + "<br/>" + obj2.age); //JS对象转换为JSON字符串
var json1 = JSON.stringify(test1);
document.write("<br/>" + json1);
</script> </html>
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAARoAAACpCAIAAAB7+GWCAAAHj0lEQVR4nO3dT07bTBzGcS9YcADu4VPQW/gW3AG84iqWuEHPYIlKRYpaVd206o6XBQvehSGeP78Zz8CTxCHfzwricezYfuLxxDNu/lvy+Pj45++/H79+P2x+3n/fjN8exm8P9983D5ufP379/vP33+Pj4+KbAKegOfQKAJ8HcQJkiBMgQ5wAmeYrAJHmBYAIcQJkiBMgQ5wAGeIEyBAnQIY4ATLECZAhToAMcQJkiBMgQ5wAmcPHaezbth/f/my6YbF407zNAKzK6uM0dE2RpRgCu7eTOG02m6enp8LCiTgNHecgHBtxnO7u7i4uLpqmOTs7u7q6en5+NouNfeueWYI4TVO7YRxHu7yP1GEtlHG6v78/Pz93j/Tb29vFuYKzk1lxc8oUTwH2Thmn6+vr4MTx5cuXxblKmiI4O+EoKON0c3MTHOmXl5eLcxXGaQ6NV4qzE1ZkdZW95Ra6slLA/h2mKeLNayXOjtPQuamZp23/Gjrax7Eqh2oon4LU9mPy7OT8M3RT2ampL2hO5+IJq3GYn3HdH5Xcqx/3hPRaZuzbIC9hZS8uARzGqu6KCO6BiCpy26lU8bBKh48T8GkQJ0CGOAEyxAmQIU6ADHECZIgTIEOcABniBMgQJ0CGOAEyxAmQIU6ADHECZIgTIEOcABniBMgQJ0CGOAEyxAmQIU6ADHECZFYTJ4Z0xfEjToAMcQJkvDhNh/Q01mrbj+Eh7o5ePE2an7sUj3ucevySO9Cr8+bhG5ItHJ8oTo3/DItcnLZR8Z+mPnTumwxd441HHv7nDd7vvwkDj+PIRHFyj+GFODlF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zP5fdB0GkqNUP4sN25jP8G6WdcezursofwYvHwOMo8djtVbAdr5XFWI9zIzmqEk9wMvbNbdXp0g7Az3Mn1287HydocS99pRlXIfKiuU1uJL1n9cE3/Wf2x/HIVe26hePwlYD4nOFtMv1bbJQSfP7caYbObdwZ5z+kj3187itohG6n2r/bsZL7iSccpqp7UxymzZyr73OeLq+KkXavUFlyKU3pv1Q5UkD4xxUteXPgnVHntlHopmGrGKRWT0jgtjmOhvFSxYpGo7KWK6dcqu2WiX4Lmyl7ukK5YveUsBavItVMk9SNJ4T4PK2vOEVlb2Qur5mPfFv0YOr9PzWk2bENpzTjlipWuVbAlM8XzWzBo2fH/dU4Y5cvzvsGSX2bpgUSIU8TeJJnvtMy103z10/ZD/dnprajZTpxZ2XnZVadZv03erOxli5UsxtqOubVKbUFjNeymfOOdc8vbZsi4BJsXkBpIhDjF7OSstFasvVRxFX5gs1hyMfa2rb2gidUdxx9fXsJKD5IdKrgFdvpuO63NEvtInFJG2R0C3l0p0d1yB7GOtdgz7igvtIs4KbkVuhNqmV4Z4gTIECdAhjgBMsQJkCFOgAxxAmSIEyBDnAAZ4gTIECdAhjgBMsQJkCFOgAxxAmSIEyBDnAAZ4gTIECdAhjgBMsQJkCFOgAxxAmSIEyDzP8wmvyDUzQSAAAAAAElFTkSuQmCC" alt="" />
JSON与JS的区别以及转换的更多相关文章
- JQuery学习:jquery对象和js对象区别和转换
JQuery对象与JS对象区别与转换 1.JQuery对象在操作时,更加方便 2.JQuery对象和js对象方法不通用 3.两者相互转换 * jq -- > js:jq对象[索引] 或者 ...
- Json——Json与JS的区别
JSON是JS的字面量的特殊表现形式,它使用文本表示 JS 对象信息,本质是字符串 var obj = {a: 'Hello', b: 'World'}; //这是一个对象,注意键名也是可以使用引号包 ...
- JSON与JS对象的区别
<script> var obj2={};//这只是JS对象 var obj3={width:100,height:200};/*这跟JSON就更不沾边了,只是JS的 对象 */ var ...
- JSON 与 JS 对象的区别与对比
定义: JSON是什么?JSON是JS的一种简单数据格式,JSON是JavaScript原生格式,它是一种严格的js对象的格式,JSON的属性名必须有双引号,如果值是字符串,也必须是双引号. 问题: ...
- JSON字符串和JS对象之间的转换
JSON字符串和JS对象之间的转换 1 json字符串转换为js对象 1.1 标准json格式字符串转换为Js对象 JSON字符串 str JSON.parse(str) eval(str) eva ...
- js如何把字符串转换成json数据的方法
js如何把字符串转换成json数据的方法 function strtojson(str){ var json = eval('(' + str + ')'); return json; } 方法二 f ...
- 理清JS数组、json、js对象的区别与联系
最近在敲代码时,遇上了一个关于JS数组的问题,由此引发了关于对象和json的联想,曾经觉得很畅顺的知识点突然模糊了.于是,为了理清这些东西,有了如下这篇文章.觉得没问题的猿们可以当复习,而那些带着疑问 ...
- 小tips:JS数值之间的转换,JS中最大的Number是多少?,JS == 与 === 的区别
JS数值之间的转换 Number(), parseInt(),parseFloat() Number()函数的转换规则如下: 1.如果boolean值,true和false将分别被转换为1和02.如果 ...
- python学习笔记(18)字典和json 的区别 和转换
字典和json 的区别 和转换 前言:字典和json非常像.接下来比较一下两者的异同 先看一下字典的写法: a = {'a':'1', 'b':'2', 'c':'3' } 再看一下json的写法: ...
随机推荐
- Java ISO 8601时间格式转换
common-lang包: String pattern = "YYYY-MM-dd'T'HH:mm:ssZZ"; System.out.println(DateFormatUti ...
- 【.Net】net 反射15分钟速成
概述 什么是反射 Reflection,中文翻译为反射. 这是.Net中获取运行时类型信息的方式,.Net的应用程序由几个部分:‘程序集(Assembly)’.‘模块(Module)’. ...
- 【uoj#22】[UR #1]外星人 组合数学+dp
题目描述 给你一个长度为 $n$ 的序列 $\{a_i\}$ 和一个数 $x$ ,对于任意一个 $1\sim n$ 的排列 $\{p_i\}$ ,从 $1$ 到 $n$ 依次执行 $x=x\ \tex ...
- canvas - 炫酷的3D星空
1.国际惯例,先上效果 (⊙o⊙)… 效果图看上去效果并不很炫酷啊,直接戳 这里 看效果吧! 2代码部分 html: <canvas id="canvas" width=&q ...
- 题解 P1423 【小玉在游泳】
这道题可以用简单的蒟蒻do-while循环,方式:直到型 因为是萌新/蒟蒻,所以并不知道这道题的时间/空间复杂度是多大 脚踩std(^▽^)摩擦 #include <iostream> # ...
- 那个执事,争先:我如何于 2015 年在 Java Web 项目中推动 HTTP/2
2015 年 5 月,HTTP/2 发布. 2015 年第 3 季度,我所在企业的一个战略级客户(而且是第二大客户)说,他们需要在当年年底之前支持 HTTP/2(原因忘了,且与本文无关,从略). 而在 ...
- 【BZOJ5319】军训列队(主席树)
[BZOJ5319]军训列队(主席树) 题面 BZOJ 洛谷 题解 一眼题既视感... 首先很明显,每次询问的结果显然是做一次离散. 然后直接上主席树就好了... 查询答案的方式也很简单 考虑一下那个 ...
- 【POJ1741】Tree(点分治)
[POJ1741]Tree(点分治) 题面 Vjudge 题目大意: 求树中距离小于\(K\)的点对的数量 题解 完全不觉得点分治了.. 简直\(GG\),更别说动态点分治了... 于是来复习一下. ...
- Unity3D手游开发日记(7) - 适合移动平台的天气效果
腾讯的天涯明月刀的天气很棒,以前我也在CE3的基础上做了一个效果差不多的,但是在手机上,还是斜下固定视角的游戏,是否还需要一个天气系统? 而且没有G-Buffer的支持,很多牛逼效果实现不了,比如角色 ...
- KinFu --- KinectFusion的开源实现
KinectFusion是微软研究院的一个项目,研究用Kinect来实时地重构3D表面,最终用于人机交互. 先看视频:http://research.microsoft.com/en-us/proje ...