11-08-2012 05:57 PM
"message" : "10080009 Wrapped Exception (with status template): 10080137 Error during processing of the template 'Expression jsonUtils.encodeJSONString(x) is undefined on line 1, column 15 in com\/test\/countries.get.json.ftl.'. Please contact your system administrator.",
"exception" : "org.springframework.extensions.webscripts.WebScriptException - 10080009 Wrapped Exception (with status template): 10080137 Error during processing of the template 'Expression jsonUtils.encodeJSONString(x) is undefined on line 1, column 15 in com\/test\/countries.get.json.ftl.'. Please contact your system administrator.",
<#escape x as jsonUtils.encodeJSONString(x)>
{
"Results" : [
<#list countries as country>
{"label":"${country.label}", "value":"${country.value}"},
</#list>
]
}
</#escape>
11-09-2012 08:15 AM
{
"Results" : [
<#list countries as country>
{"label":"${country.label?js_string}", "value":"${country.value?js_string}"},
</#list>
]
}
where js_string converts your results in Javascript compliant strings.11-29-2012 05:32 AM
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.