Answers for "convert list to json in javascript"

2

how to convert array to string json

var arr = [ "John", "Peter", "Sally", "Jane" ];
var myJSON = JSON.stringify(arr);
Posted by: Guest on July-25-2020
1

js create json from object

JSON.stringify(the_data);
Posted by: Guest on December-18-2020

Code answers related to "convert list to json in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language