json添加数据

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>demo</title>
<script>
    var json={};
    json['a']='123';
    alert(JSON.stringify(json));
</script>
</head>

<body>
</body>
</html>

原文地址:https://www.cnblogs.com/heboliufengjie/p/4162793.html