AnsweredAssumed Answered

Parse JSON values

Question asked by wanderer2019 on Feb 15, 2010
Latest reply on Feb 16, 2010 by wanderer2019
Good day,

i am tryin to get values on alfresco side web script, sent by share web script.

Script looks very primitive, made just for testing purposes (located in C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\sample):
function main(){
logger.log("Starting to parse input params");
model.mytestval=JSON.get("testval");
logger.log("Finished to parse input params.");
}

main();

BUT, whenever i try to call it from dashlet i get exception telling that JSON is not defined.
What i do wrong? How come a lot of default scripts use JSON object and i got this exception?

Outcomes