package jalview.io;
import java.io.IOException;
+import java.io.StringReader;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
Document doc = Jsoup.parse(htmlData.toString());
Element content = doc.getElementById("seqData");
- String alignmentJsonString = content.val();
-
- JSONFile jsonFile = new JSONFile().parse(alignmentJsonString);
+ JSONFile jsonFile = new JSONFile().parse(new StringReader(content.val()));
this.seqs = jsonFile.getSeqs();
this.seqGroups = jsonFile.getSeqGroups();
this.annotations = jsonFile.getAnnotations();