<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save(self, fp=None):
 """Update settings JSON data and save to file. Parameters fp : `file` or `str`, optional Output file. """

        self.settings['storage'] = {
            'state_separator': self.state_separator
        }
        self.do_save(fp)