JAL-4114 patch REST client for changed JSON schema in 3D beacons v2 API
authorJim Procter <j.procter@dundee.ac.uk>
Fri, 20 Jan 2023 17:49:38 +0000 (17:49 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Fri, 20 Jan 2023 17:50:05 +0000 (17:50 +0000)
src/jalview/fts/service/threedbeacons/TDBeaconsFTSRestClient.java

index b686c95..d7f534e 100644 (file)
@@ -262,7 +262,8 @@ public class TDBeaconsFTSRestClient extends FTSRestClient
       summaryRowData[0] = associatedSequence;
       colCounter = 1;
     }
-
+    Map<String, Object> tdbJsonStructure = (Map<String, Object>) tdbJsonStructureSummary
+            .get("summary");
     for (FTSDataColumnI field : displayFields)
     {
       String fieldData = (tdbJsonStructure.get(field.getCode()) == null)