patch_json = [{'op': 'replace', 'path': '/b', 'value': 'some_new_value'}, {
    'op': 'replace', 'path': '/a', 'value': 'some_new_value2'}]

def fix_key(item):
    item['path'] = item['path'].replace('/', 'col_')
return item
print(map(fix_key, patch_json))
Partial updates via PATCH: how to parse JSON data for SQL updates?