Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 438 Bytes

reformatting_keywords.md

File metadata and controls

9 lines (7 loc) · 438 Bytes

How to change comma-separated keywords into an array.

  • Open json file in Chrome.
  • Open the browser's console (f12 in chrome)
  • enter: datajson = JSON.parse(document.body.textContent);
  • enter: for ( var i = 0; i < datajson.length; i++) {datajson[i].keyword = datajson[i].keyword.split(",");}
  • enter: document.body.textContent = JSON.stringify(datajson);

[Note - can do the same with references and theme if needs be.]