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?
var parsedVal = JSON.parse(record);
out = {};
for (index = 0; index < parsedVal.length; index++) {
key = "data_"+index;
out[key] = parsedVal[index];
}
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.