docs: def serialise(self, element: Element, **kwargs) -> str:
          """
          Serialises the given element into JSON.
  
          >>> JSONSerialiser().serialise(String(content='Hello'))
          '{"element": "string", "content": "Hello"}'
          """
  
          return json.dumps(self.serialise_dict(element), **kwargs)