Write box.json file.