diff --git a/lib/Entity.js b/lib/Entity.js index 1705b99..895c6ca 100644 --- a/lib/Entity.js +++ b/lib/Entity.js @@ -45,15 +45,12 @@ module.exports = class Entity { { obj[newKey] = property; } - else if (property instanceof Map) + else if(property instanceof Map) { let arr = []; for (let pair of property) { - let o = { - key: pair[0], - value: pair[1] - }; + let o = [pair[0], pair[1]]; arr.push(o); } obj[newKey] = arr;