code: def lock(self):
          
          data = self.data
          data['_meta']['hash'] = {"sha256": self.hash}
          data['_meta']['pipfile-spec'] = 6
          return json.dumps(data, indent=4, separators=(',', ': '))
docs: Returns a JSON representation of the Pipfile.