Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "[{"name":"john doe","email":"john.doe@mail.com"},{"name":"jane doe","email":"jane.doe@mail.com"}]"
- %%[
- var @json
- set @json = AttributeValue("Recipient_List")
- ]%%
- {{.dataobject JsonVar type=variable source=@json maxrows=20}}
- {{.data}}
- {"target":"@Json"}
- {{/data}}
- {{/dataobject}}
- {{#each JsonVar}}
- <p>{{name}}, {{email}}</p>
- {{/each}}
- %%[
- var @Json
- set @Json = '[{"name": "john doe","email": "john.doe@mail.com"},{"name": "jane doe","email": "jane.doe@mail.com"}]'
- ]%%
- {{.dataobject JsonVar type=variable source=@Json maxrows=20}}
- {{.data}}
- {"target":"@Json"}
- {{/data}}
- {{/dataobject}}
- {{#each JsonVar}}
- <br><br>Name: {{name}}
- <br>Email: {{email}}
- {{/each}}
- Name: john doe
- Email: john.doe@mail.com
- Name: jane doe
- Email: jane.doe@mail.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement