I want to create a JSON like that
{
"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"
}
}
}
I have already created beacon object like that
beacon = {
advertiser_mac: {
'major': major,
'minor': minor,
'uuid': proximity_uuid
}
}
But I do not know how to concat all of them in one object like the example above