Skip to content

Instantly share code, notes, and snippets.

@ldenson11
Created November 12, 2019 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldenson11/91c0e92b211e97bd0cf66953edda2a92 to your computer and use it in GitHub Desktop.
Save ldenson11/91c0e92b211e97bd0cf66953edda2a92 to your computer and use it in GitHub Desktop.
// 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