Created
September 24, 2014 20:48
-
-
Save alex3305/4a7376f88d4822540b3e to your computer and use it in GitHub Desktop.
JSON joiner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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