how to convert string to json using javascript

 

 

 

 

this is my JavaScript code.