I have multiple JSON like those
JSON
var object1 = {name: \"John\"}; var object2 = {location: \"San Jose\"};
They are not nesting o
Let object1 and object2 be two JSON object.
object1
object2
var object1 = [{"name": "John"}]; var object2 = [{"location": "San Jose"}]; object1.push(object2);
This will simply append object2 in object1:
[{"name":"John"},{"location":"San Jose"}]