This is how I would access the 1st item in the array, so there is a sub category array inside the categories array.
console.log(data.Body.Categories[0].CategoryName);
console.log(data.Body.Categories[0].SubCategories[0].CategoryName);
I am trying to do something like this but it still only shows the parent categories and not the sub categories.
jQuery.each(data.Body.Categories, function(index, value) {
console.log(value.CategoryName);
jQuery.each(data.Body.Categories.SubCategories, function(key, val) {
console.log(val.CategoryName);
});
});