Skip to content

Commit

Permalink
New format of 'entries.json'
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblum committed Aug 19, 2024
1 parent c47b15f commit 18cafae
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -894,10 +894,11 @@ public void getDomainsMap() {
FileInputStream is = new FileInputStream(file);
ObjectMapper mapper = new ObjectMapper();
mapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);
Map<String, Map<String, Object>> jsonMap = mapper.readValue(is, new TypeReference<>() {});
Map<String, Object> jsonMap = mapper.readValue(is, new TypeReference<>() {});
Map<String, Map<String, Object>> entries = (Map<String, Map<String, Object>>) jsonMap.get("entries");
domainsMap = new ConcurrentHashMap<>();

for (Map.Entry<String, Map<String, Object>> entry : jsonMap.entrySet()) {
for (Map.Entry<String, Map<String, Object>> entry : entries.entrySet()) {
String accession = entry.getKey();
Map<String, Object> value = entry.getValue();

Expand Down

0 comments on commit 18cafae

Please sign in to comment.