I have an array like this
["test","test group 2","test group 4","test group 4","test group 5","test group 6"]
I need to convert this array in to json .
I have tried below code:
var jsonString = JSON.stringify(myArray);
output as like this.
org.mozilla.javascript.NativeArray@617586ce
I have tried json parsing also but did not work. How can I convert it to a JSON object?