docs: def json_formatter(subtitles):
      """
      Serialize a list of subtitles as a JSON blob.
      """
      subtitle_dicts = [
          {
              'start': start,
              'end': end,
              'content': text,
          }
          for ((start, end), text)
          in subtitles
      ]
      return json.dumps(subtitle_dicts)