I am trying to use the Velocity engine built into Atlassian products (and exposed through com.atlassian.templaterenderer) to substitute the JSON value in the template.
In the template, it looks something like this:
<script>
foo = $foo
</script>
However, when I draw a template with "foo" matched to a string ["bar", "baz"], the output is as follows:
<script>
foo = ["bar", "baz"]
</script>
How can this be avoided?
source
share