You want the concat
method.
var finalObj = json1.concat(json2);
More Related Contents:
- Loading local JSON file
- Converting JavaScript object with numeric keys into array
- Post data to JsonP
- How to send JSON instead of a query string with $.ajax?
- Unexpected token colon JSON after jQuery.ajax#get
- Parsing JSON objects for HTML table
- Uncaught SyntaxError: Unexpected token with JSON.parse
- Why is it a bad practice to return generated HTML instead of JSON? Or is it?
- How to filter JSON Data in JavaScript or jQuery?
- Javascript search inside a JSON object
- How to get json key and value in javascript?
- How to convert the following table to JSON with javascript?
- How do I encode a JavaScript object as JSON?
- Defining a HTML template to append using JQuery
- Nested JSON objects – do I have to use arrays for everything?
- JS Object this.method() breaks via jQuery
- Error “Uncaught SyntaxError: Unexpected token with JSON.parse”
- Convert js Array() to JSon object for use with JQuery .ajax
- Passing JSON data from php to html-data attribute and then to Javascript
- Convert JSON string to Javascript array [duplicate]
- How to loop through JSON array?
- How to send parameter json array when modal open?
- Creating a JSON dynamically with each input value using jquery
- JSON to string variable dump
- Nested JSON: How to add (push) new items to an object?
- Why does the jQuery JSON parser need double escaping for backslashes?
- jQuery uses (new Function(“return ” + data))(); instead of eval(data); to parse JSON, why?
- creating highchart with ajax json data
- Ordered JSONObject
- Grouping JSON by values