data={"data":[{"end_point": [-2.45, 5.04], "hotelid": "demo_one", "begin_point": [-4.37, 6.36], "name": "a5", "floor": ""},{"end_point": [-2.45, 5.04], "hotelid": "demo_one", "begin_point": [-4.37, 6.36], "name": "a2", "floor": ""}
,{"end_point": [-2.45, 5.04], "hotelid": "demo_one", "begin_point": [-4.37, 6.36], "name": "a3", "floor": ""}]} print("before:\n\n",data,"\n\n")
temp=-
k=
for i in data['data']:
if(i["name"]=="a3"):
temp=k
break
k=k+
if(temp!=-):
del data['data'][temp] print("after:\n\n",data)