I currently have two json files that I need to combine using python. Essentially I want to replace the choices array in file 1 with the array in file 2 using python. How do I go about doing this? File 1 is:
{
"choice_list": {
"name": "Boston Street Names",
"choices":[ {"value": "127906", "label": "DAVIS STREET"},
{"value": "129909", "label": "NORTH QUINCY STREET" },
{ "value": "134194", "label": "ADAMS STREET" }]
}
}
File 2 is:
[{"value": "134484", "label": "PRISCILLA ALDEN ROAD"},
{"value": "134487", "label": "VAN BUREN DRIVE"}]