Answers for "how to convert an array of objects to json"

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

Code answers related to "how to convert an array of objects to json"

Code answers related to "Javascript"

Browse Popular Code Answers by Language