我想创建一个这样的 JSON
{
"beacons": {
"0c:f3:ee:16:6f:15": {
"label": "label",
"major": "7",
"minor": 15349,
"uuid": "699EBC80-E1F3-11E3-9A0F-0CF3EE3BC012"
},
"0c:f3:ee:16:6f:24": {
"label": "label",
"major": "7",
"minor": 15364,
"uuid": "699EBC80-E1F3-11E3-9A0F-0CF3EE3BC012"
},
"0c:f3:ee:16:6f:53": {
"label": "label",
"major": "7",
"minor": 15411,
"uuid": "699EBC80-E1F3-11E3-9A0F-0CF3EE3BC012"
}
}
}
我已经创建了这样的信标对象
beacon = {
advertiser_mac: {
'major': major,
'minor': minor,
'uuid': proximity_uuid
}
}
但我不知道如何像上面的例子一样将它们全部连接到一个对象中
胡子哥哥
相关分类