I found the solution from this post:
Using JSON.parse(myVar); will do the job for me.
JSON.parse(myVar);
Thank you for pointing me to JXA. I could search a solution for it.
For more information, see the wiki Searching the Forum for Answers section.