toJson

convert Array to JSon String

 

let colors = ["red", "blue", "yellow"];
alert(colors.toString()); // return "red","blue","yellow"