I have two variables:
First one:
studentSearchCriteria1= {"studentList1":"key":"firstName","match":$scope.firstName, "value":$scope.studentSearchCriteria.studentfName},],"searchUserInformationKey": [ "",],"start": 0}
and the second:
var studentSearchCriteria1 = {"studentList2":[{"key":"lastName","match":$scope.firstName,"value":$scope.studentSearchCriteria.studentlName},],"searchUserInformationKey":["",],"start": 0}
I want add content of one array to another and result should be:
{"studentList1": [{"key":"firstName","match":$scope.firstName,"value":$scope.studentSearchCriteria.studentfName},{"key":"lastName","match":$scope.firstName,"value":$scope.studentSearchCriteria.studentlName},],"searchUserInformationKey":["",],"start": 0}