import json
c = json.load(open('/usr/local/etc/xray/config.json'))
c['inbounds'][1]['streamSettings']['wsSettings']['path'] = '/api'
json.dump(c, open('/usr/local/etc/xray/config.json','w'), indent=2)
