Stringify nested JSON object
const content = document.createElement('div');
content.classList.add("content");
+ if (typeof (element[prop]) === "object") {
+ content.innerHTML = JSON.stringify(element[prop]);
+ } else {
content.innerHTML = element[prop];
+ }
field.appendChild(attribute);
field.appendChild(content);
