Created
June 20, 2014 13:06
-
-
Save neurotech/6bbd67365fbdf9729eb1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var output = {}; | |
output.results = []; | |
_.each(data.results, function(object) { | |
var records = {}; | |
var keys = Object.keys(object); | |
for (var i = 0; i < keys.length; i++) { | |
records[camelCase(keys[i])] = object[keys[i]]; | |
}; | |
output.results.push(records); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment