You just need to run this through JSON.parse(), which is supported by almost all the JavaScript parsers:

console.log(JSON.parse(`[  
    [32.361346650846805,50.90932315437885],
    [32.36743646734031,50.95189517586323],
    [32.35467638118774,50.95876163094135],
    [32.342494619322636,50.904516635824166],
    [32.36279664436138,50.90039676277729],
    [32.380194752587755,50.899023471761666],
    [32.3648265962154,50.91481631844135],
    [32.361346650846805,50.90932315437885]
]`));

Just beware that the JavaScript might not like having line-breaks in strings if you give them in source code. If the original string does have line-breaks, that's totally fine. That's why I have used a template literal here.

// Say you have your string here.
var str = `[  
    [32.361346650846805,50.90932315437885],
    [32.36743646734031,50.95189517586323],
    [32.35467638118774,50.95876163094135],
    [32.342494619322636,50.904516635824166],
    [32.36279664436138,50.90039676277729],
    [32.380194752587755,50.899023471761666],
    [32.3648265962154,50.91481631844135],
    [32.361346650846805,50.90932315437885]
]`;
// Convert to array.
var arr = JSON.parse(str);
// Loop throught the array.
for (var i = 0; i < arr.length; i++)
  console.log(arr[i]);

Answer from Praveen Kumar Purushothaman on Stack Overflow
๐ŸŒ
W3Schools
w3schools.com โ€บ js โ€บ js_json_stringify.asp
JavaScript JSON.stringify()
The JSON.stringify() method converts a JavaScript value into JSON text.
Discussions

Convert JSON string to array of JSON objects in Javascript - Stack Overflow
Avoid itโ€ - Douglas Crockford in "Javascript: The Good Parts" Eval is not recommended due to how dangerous it can be. It's better to use JSON.parse() instead. 2020-03-02T18:48:03.603Z+00:00 ... Thanks a ton after lots of research I ended up with eval function!! which transformed my stringed JSON to actual array ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
javascript - convert string to json array - Stack Overflow
I get this response from an Ajax request. Javascript seems to intepret it as a string. (When I say alert this.responseText, the whole string is shown) How can i convert it to a javascript object (... More on stackoverflow.com
๐ŸŒ stackoverflow.com
November 19, 2011
How to convert JSON object to JavaScript array? - Stack Overflow
I need to convert JSON object string to a JavaScript array. More on stackoverflow.com
๐ŸŒ stackoverflow.com
javascript - Convert array to JSON - Stack Overflow
I have an Array var cars = [2,3,..] which holds a few integers. I've added a few values to the array, but I now need to send this array to a page via jQuery's .get method. How can I convert it to a... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ javascript โ€บ how-to-convert-json-string-to-array-of-json-objects-using-javascript
Convert JSON String to Array of JSON Objects in JavaScript - GeeksforGeeks
August 5, 2025 - The eval() method can technically be used to convert a JSON string into an array of objects, it is not recommended due to security risks. Using eval() allows the execution of arbitrary JavaScript code, which can lead to vulnerabilities if the JSON string contains malicious code.
๐ŸŒ
ReqBin
reqbin.com โ€บ code โ€บ javascript โ€บ n2ek7onb โ€บ javascript-array-to-json-example
How do I convert JavaScript array to JSON?
How do I join array elements in JavaScript? How do I pretty print JSON in JavaScript? How to get a sum of array elements in JavaScript? How do I check if an array contains an element in JavaScript? How do I clear an array in JavaScript? How do I convert string to array in JavaScript?
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ JSON โ€บ stringify
JSON.stringify() - JavaScript - MDN Web Docs
4 days ago - If space is anything other than ... representing the given value, or undefined. ... A BigInt value is encountered. JSON.stringify() converts a value to the JSON notation that the value represents....
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ article โ€บ how-to-convert-json-string-to-array-of-json-objects-using-javascript
How to Convert JSON String to Array of JSON Objects Using JavaScript?
November 27, 2024 - <!DOCTYPE html> <html lang="en"> <head> <title>Converting JSON String to Array using JSON.parse()</title> </head> <body> <h2>Converting JSON String to Array of JSON Objects</h2> <p>In this example, we have used <strong>JSON.parse()</strong> method ...
Find elsewhere
๐ŸŒ
SitePoint
sitepoint.com โ€บ blog โ€บ javascript โ€บ jquery convert json string to array
jquery convert json string to array โ€” SitePoint
February 12, 2024 - In JavaScript, you can use the JSON.parse() method to convert a JSON string into an array.
๐ŸŒ
RSWP Themes
rswpthemes.com โ€บ home โ€บ javascript tutorial โ€บ 4 methods to convert json object to string array in javascript
4 Methods To Convert Json Object To String Array In Javascript
April 5, 2024 - In the world of web development, handling JSON (JavaScript Object Notation) data is a common task. One such scenario is converting a JSON object into a string array in JavaScript.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ javascript-convert-an-array-to-json
JavaScript Convert an array to JSON
November 2, 2022 - An array is a special object in JavaScript that stores multiple types of values, including integers, strings, and floats simultaneously. JSON (JavaScript Object Notation) is a lightweight data format used to represent structured data, commonly used
๐ŸŒ
EDUCBA
educba.com โ€บ home โ€บ software development โ€บ software development tutorials โ€บ javascript tutorial โ€บ convert string to json
Convert String to JSON | Conversion of String to JSON in JavaScript
August 23, 2025 - JSON.parse method is used to convert the input string to JSON object by following some specifications. Convert String to JSON converts an input string to a JSON object for the user to have output in a readable format like a map or an array.
Address: Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ javascript-convert-an-array-to-json
Convert an Array to JSON in JavaScript | GeeksforGeeks
October 7, 2024 - Given a JavaScript Array and the task is to convert an array to JSON Object. Below are the approaches to convert an array to JSON using JsvaScript: ... The use of JSON is to exchange data to/from a web server. While sending data to a web server, the data need to be a string.
๐ŸŒ
Boot.dev
boot.dev โ€บ blog โ€บ javascript โ€บ converting an array to a json object in javascript
Converting an Array to a JSON Object in JavaScript | Boot.dev
October 1, 2022 - JSON, or "JavaScript Object Notation", is a highly popular data exchange format that's widely used in web development. In this post, we'll explore several simple methods for converting a JavaScript array into JSON data. Plus, we'll discuss the benefits of using JSON and how it can help improve ...
๐ŸŒ
W3Schools
w3schools.com โ€บ js โ€บ js_json_server.asp
<h1>JavaScript Loading JSON</h1>
The request body must contain text, not a JavaScript object. Use JSON.stringify() to convert the object into JSON text.
๐ŸŒ
Pluralsight
pluralsight.com โ€บ blog โ€บ tech guides & tutorials
Convert Strings to JSON Objects in JavaScript with eval() | Pluralsight
March 31, 2025 - String data can be easily converted to JSON using the stringify() function, and also it can be done using eval(), which accepts the JavaScript expression that you will learn about in this guide.