pull/13/head
Jendrik 2025-09-25 22:55:29 +02:00
parent 6ad1474f87
commit 4c4e2d1f23
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ function getJsonFromXML(dom) {
// initializing object to be returned.
let jsonResult = {};
let attributes = dom.attributes
let attributes = dom.attributes ? dom.attributes : []
for (let attribute of attributes) {
jsonResult[attribute.name] = attribute.value
}
@ -108,7 +108,7 @@ function calculateBirthdate(json) {
*/
function mapRawJson(rawJson) {
let json = {}
let held = rawJson.held;
let held = rawJson.helden.held;
json.name = held.name
json.meta = {}
json.meta.spezies = held.basis.rasse.string