code: def generate_sjson_from_srt(srt_subs):
          
          sub_starts = []
          sub_ends = []
          sub_texts = []
          for sub in srt_subs:
              sub_starts.append(sub.start.ordinal)
              sub_ends.append(sub.end.ordinal)
              sub_texts.append(sub.text.replace('\n', ' '))
  
          sjson_subs = {
              'start': sub_starts,
              'end': sub_ends,
              'text': sub_texts
          }
          return sjson_subs
docs: Generate transcripts from sjson to SubRip (*.srt).
  
          Arguments:
              srt_subs(SubRip): "SRT" subs object
  
          Returns:
              Subs converted to "SJSON" format.