Hello,
I am create javascript function using studio.
var result = q.command( "sql",mySQLCommand);
here result is below json:
[
{
"@type": "d",
"@rid": "#-2:1",
"@version": 0,
"vKRId": "#23:0",
"uRId": "#21:0",
"@fieldTypes": "vKRId=x,uRId=x"
}
]
I want read vKRId and uRId values from result variable. I tried using JSON.parse or JSON.stringfy, it gives below error
SyntaxError: Invalid JSON: <json>:1:0 Expected json literal but found
What is best practice to parse query result?