diff --git a/lib/loader.js b/lib/loader.js index e76ceec..7e4dd42 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -85,7 +85,7 @@ Loader.prototype.loadFixture = function(fixture, models) { where[k] = {}; where[k][Op.contains] = data[k]; } else if (fieldType === 'JSON') { - where[k] = data[k]; + where[k] = JSON.stringify(data[k]); } else if (Model.rawAttributes[k].hasOwnProperty('set') && !ignoreSet) { var val = null; // create a simulated setDataValue method, which is commonly