Inside the json object I traverse upto 4 level something any of the level may undefined and code break.
How validate/check json node in JavaScript not in jquery
productDetail.breadcrumb.levels.push(paramObj.categories.category.category.category.CATEGORYNAME);