diff --git a/lib/modifiers/type.js b/lib/modifiers/type.js index 6bc96ef..665bcf4 100644 --- a/lib/modifiers/type.js +++ b/lib/modifiers/type.js @@ -15,7 +15,9 @@ function modify(data, model) { switch (model.type.toLowerCase()) { case 'string': - if (data) { + if (typeof data === 'object') { + parsed = JSON.stringify(data); + } else { parsed = String(data); } break;