to make sure your object does not contain any undefined props use this simple trick: JSON.parse( JSON.stringify(YourJsonData ) ) For more info take a look at this codePen: http://codepen.io/ajmueller/pen/gLaBLX