Trying to extract the json from the html of a mastodon toot was appearing troublesome then I stumbled upon a library that converts each of the html components to a list of lines, looking like this will be much easier to deal with
If you have a fediverse account, you can quote this note from your own instance. Search https://swarm.coiloptic.org/brettm/p/1769394441.875494 on your instance and quote it. (Note that quoting is not supported in Mastodon.)