docs: def string2json(self, string):
          """Convert json into its string representation.
          Used for writing outputs to markdown."""
          kwargs = {
              'cls': BytesEncoder,  # use the IPython bytes encoder
              'indent': 1,
              'sort_keys': True,
              'separators': (',', ': '),
          }
          return cast_unicode(json.dumps(string, **kwargs), 'utf-8')