Skip to content

Instantly share code, notes, and snippets.

@ldenson11 ldenson11/input_transforms.js Secret
Created Nov 12, 2019

Embed
What would you like to do?
// normalize the case of keys
var parsedVal = JSON.parse(record);
out = {};
Object.keys(parsedVal).forEach(function(key) {
out[key.toUpperCase()] = parsedVal[key]
});
JSON.stringify(out);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.