unbreak writing restricted.json