Hi,
I have a text field called data in an object called block.
I access this field in the javascript using the following code
let a =“Search for Blocks:first item’s data”;
console.log(a);
Now if data contains normal text like this is text, javascript runs properly, but when the data has a json like [{“target”:"(L)Location",“param”:"(Cy)City"}] I get following error
run_debug.js:349 Bug in custom code SyntaxError: Unexpected identifier ‘target’
at eval (PLUGIN_1488796042609x768734193128308700/Toolbox-action–Run-javascript-.js:3:395)
at root (https://contestpool.com/version-test/tmp?debug_mode=true:1:12)
Can someone let me know why this is happening?