Convert Key Value Pairs list into a Javascript JSON Array

Convert a spreadsheet list of key values pairs into JavaScript JSON array.
Copy in the text and click Get Results button. JSON array code can be copied out from the bottom textarea.
Use key value pairs like: MyArray[0].key + " " + MyArray[0].value;

Text Inputs


key1 value1
key2 value2
key3 value3

Javascript JSON Array Code Output

var MyArray = [
{"key":"key1", "value":"value1"},
{"key":"key2", "value":"value2"},
{"key":"key3", "value":"value3"}

JavaScript Array Name

Your key value pairs list to copy in here

Use spreadsheet to open your key value pair list file and copy the contents into the top text area box.
Shortcuts include: Ctrl A for select all, Ctrl C for copy and Ctrl V for paste.

     Press Get Result button after completing copying in list in to text area above.

JavaScript JSON Array Results Here

Copy the lower Javascript results into a Javascript code editor.