I have two objects
$scope.a= {"Sedan":{"Audi":["A3","A4"]},"Hatchback":{"Maruthi":["Swift"]}};
var b= {"Hatchback":{"Volkswagen":["Polo"],"Fiat":["Punto1"]}};
I need the following result after merging
{"Sedan":{"Audi":["A3","A4"]},"Hatchback":{"Maruthi":["Swift"],"Volkswagen":["Polo"],"Fiat":["Punto1"]}};