09-08-2011 04:50 PM
09-09-2011 03:44 AM
09-09-2011 03:44 PM
The only thing I found was using the JsonUtils from SpringSurf: http://www.springsurf.org/sites/1.0.0.M3/spring-webscripts/spring-webscripts-documentation/reference...Thanks for the suggestion, but jsonUtils.toObject doesn't work in Alfresco, it produces instead "Expected collection or sequence. foo evaluated instead to freemarker.ext.beans.StringModel".
09-10-2011 11:38 AM
var connector = remote.connect("alfresco");
var response = connector.get("/my/service/url");
var data = json_parse(response + "");
The response+"" thing on the last line converts the object returned by connector.get into a real JavaScript string. The original object is not a real JavaScript string, it lacks some of the standard string methods, which are used by the JSON parser.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.