I have an array of words. I am not getting how can I convert each word into json by using JavaScript?
Here is the piece of code that I am using:
this.new_testing = [];
this.newcontent=Contents.split(' ');
console.log(this.newcontent, 'word count')
console.log(JSON.stringify({newtesting : this.newcontent}), 'word count json');
console.log(this.new_testing.push(this.newcontent) , ' all push list')
console.log(this.new_testing, ' string testing')