KW Online Tools Zone
Knowledge Walls
View All Tools Home
HOW TO CONCAT ARRAY OF JSON IN JAVASCRIPT
[Jquery editor]
Run
Share Link
Clear
HTML [Ctrl+Enter] - to run
How to concat array of json in JAVASCRIPT
CSS [Ctrl+Enter] - to run
Jquery [Ctrl+Enter] - to run
$(function(){ var json1 = [{"name":"john"},{"age":"12"}]; var json2 = [{"sex":"male"}]; document.write(JSON.stringify(json1.concat(json2))); });
OUTPUT
Copyright © 2021 Knowledge walls, All rights reserved
Copyright © 2021 Knowledge walls, All rights reserved