Replace " " with [ ] in Javascript : I used a php variable into Javascript like this-

    var Coordinates = <?php echo json_encode($coords); ?>;

And now I want to stringify it so I used 

    var JSON_Coordinates = JSON.stringify(Coordinates); 

the result is 

    ["-98.47442960102632,38.51861967935271","-98.46128420909388,38.17510666712973","-97.91584295178713,38.17274814619617", -"97.91882439611877,38.51683243137235", "-98.47442960102632,38.51861967935271"]

But I want It to be like this-

    [[-98.47442960102632,38.51861967935271],[-98.46128420909388,38.17510666712973],[-97.91584295178713,38.17274814619617], [-97.91882439611877,38.51683243137235], [-98.47442960102632,38.51861967935271]]

So how to replace " " with [ ]?

Thanks!

