def save( self, path ): f = file(path, 'w') f.write(json(self._properties, sort_keys=True, indent=4)) f.close()
def __repr__( self ): return json(self._properties, sort_keys=True, indent=4)
def save( self, path ): with open(path, 'w') as f: f.write(json(self._properties, sort_keys=True, indent=4))