Update a key's value's in a JSON file.

def update(self, data, key):
        """Update a key's value's in a JSON file."""
        og_data = self.read()
        og_data[key] = data
        self.write(og_data)