import json
_JSON = '[{"id": 1, "lang": "python"}, {"id": 2, "lang": "java"}, {"id": 3, "lang": "c++"}]'
lst = json.loads(_JSON)
for index, dict in enumerate(lst):
if dict['id'] == 2:
lst.pop(index)
_JSON = json.dumps(lst)
print(_JSON)
'''
run:
[{"id": 1, "lang": "python"}, {"id": 3, "lang": "c++"}]
'''