Reputation: 28208
Considering the following context:
{
dogs: [ {name: "rex"}, {name: "tobi"} ]
}
How can I dump dogs as an array, ie: something similar to JSON.stringify(dogs)
I tried with {#dogs}{@contextDump}{/dogs}
, but (logically) it outputs:
{"name": "rex"}{"name": "tobi"}
rather than:
["name": "rex"}, {"name": "tobi"}]
Thanks
Upvotes: 4
Views: 2853