bugfixes
parent
6ad1474f87
commit
4c4e2d1f23
|
|
@ -43,7 +43,7 @@ function getJsonFromXML(dom) {
|
||||||
// initializing object to be returned.
|
// initializing object to be returned.
|
||||||
let jsonResult = {};
|
let jsonResult = {};
|
||||||
|
|
||||||
let attributes = dom.attributes
|
let attributes = dom.attributes ? dom.attributes : []
|
||||||
for (let attribute of attributes) {
|
for (let attribute of attributes) {
|
||||||
jsonResult[attribute.name] = attribute.value
|
jsonResult[attribute.name] = attribute.value
|
||||||
}
|
}
|
||||||
|
|
@ -108,7 +108,7 @@ function calculateBirthdate(json) {
|
||||||
*/
|
*/
|
||||||
function mapRawJson(rawJson) {
|
function mapRawJson(rawJson) {
|
||||||
let json = {}
|
let json = {}
|
||||||
let held = rawJson.held;
|
let held = rawJson.helden.held;
|
||||||
json.name = held.name
|
json.name = held.name
|
||||||
json.meta = {}
|
json.meta = {}
|
||||||
json.meta.spezies = held.basis.rasse.string
|
json.meta.spezies = held.basis.rasse.string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue