Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
JSON joiner
JSON.Join = function(jsons) {
var retJson = {};
for (var j1 in jsons) { for (var j2 in jsons[j1]) { retJson[j2] = jsons[j1][j2]; } }
return retJson;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment