Example 1
var jsonObjectA = [{"name":"john"},{"age":"12"}];
var jsonObjectB = {"sex":"male"};
// concat is a array object function. here concating json and array
jsonObjectA.concat(jsonObjectB);
Example 2
var jsonObjectA = [{"name":"john"},{"age":"12"}];
var jsonObjectB = [{"sex":"male"},{"zip","23343"}];
// concat is a array object function. Here concating array and array
jsonObjectA.concat(jsonObjectB);
Demo