Skip to content

Instantly share code, notes, and snippets.

@ldenson11
Created November 12, 2019 17:29
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/094febda88658c931fcadf0929643dfd to your computer and use it in GitHub Desktop.
Save ldenson11/094febda88658c931fcadf0929643dfd to your computer and use it in GitHub Desktop.
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