Forum Discussion
DougS
10 years agoKhoros Oracle
you should be able to do one of theses two (I'm afk, or would have tested it first):
<#assign respons_getUser = { "user": { "id": 123 } } />
${user.id}
OR:
<#assign response_getUser = "{ "user": { "id": 123 } }"?eval />
${user.id}
I'd recommend the first way over the second, as using eval can be dangerous - you need to be careful to avoid freemarker injection attacks.
<#assign respons_getUser = { "user": { "id": 123 } } />
${user.id}
OR:
<#assign response_getUser = "{ "user": { "id": 123 } }"?eval />
${user.id}
I'd recommend the first way over the second, as using eval can be dangerous - you need to be careful to avoid freemarker injection attacks.
Related Content
- 7 months ago
- 29 days ago
- 8 months ago
- 2 years ago