Given the following context:
{
dogs: [ {name: "rex"}, {name: "tobi"} ]
}
How can I dump dogs as an array, i.e. something likeJSON.stringify(dogs)
I tried with {#dogs}{@contextDump}{/dogs}, but (logically) it outputs:
{"name": "rex"}{"name": "tobi"}
but not:
["name": "rex"}, {"name": "tobi"}]
thanks
source
share