Pass Json type data from variable to javascript code from automation anywhere

#1
Greetings,
I want to pass a json value from a variable to javascript, but the problem is that it is not passing it the right way.
Suppose {"name":"JANE","id":"20789","company":"HTC"} is my json data i store in a variable and try to pass it to script, it is passing the value without quotes.
(i.e) refer image
View attachment 1539780394091.png
I tried passing the values enclosing double quotes but all in vain. I am actually trying to get the value of company with the help of this script.
this is my script:

var myobj=WScript.Arguments.item(0);
x=myobj.company;
WScript.Echo(x);


Kindly provide some solutions.
Thanks in advance
 
Top