【发布时间】:2017-12-31 16:07:36
【问题描述】:
var module = {
"code": "6COM9051",
"name": "More Web Scripting",
"cohort": "IT/JH/ITMB",
"students": {
"97xx08xx01": {
"firstName": "Jo 1",
"lastName": "Bloggs",
"allocatedGroup": "690511"
},
"97xx08xx03": {
"firstName": "Jo 2",
"lastName": "Bloggs",
"allocatedGroup": "690511"
},
"97xx08xx02": {
"firstName": "Jo 3",
"lastName": "Bloggs",
"allocatedGroup": "690513"
},
"97xx08xx06": {
"firstName": "Joe 1",
"lastName": "Bliggs",
"allocatedGroup": "690513"
},
"97xx08xx05": {
"firstName": "Joe 2",
"lastName": "Bliggs",
"allocatedGroup": "690511"
},
"97xx08xx04": {
"firstName": "Joe 3",
"lastName": "Bliggs",
"allocatedGroup": "690513"
},
},
"groups": {
"690511": {
"name": "Tutorial 1",
"members": ["97xx08xx01", "97xx08xx05", "97xx08xx03"]
},
"690513": {
"name": "Tutorial 2",
"members": ["97xx08xx04", "97xx08xx02", "97xx08xx06"]
}
}
}
【问题讨论】:
-
请格式化您的代码并提出问题。
-
欢迎来到 StackOverflow。请参阅How to Ask 页面以获得澄清此问题的帮助。
-
其实我想在上面的json中添加新组
标签: javascript json