how to ingest JSON using Responsys Personalization Language (RPL) into HTML in Responsys
We wanted some directions around how to make our Json feeds work with Responsys Personalization Language (RPL). We went through the documentation but didn’t find anything specific to JSON, So currently having issues getting it to work.
The specific issues being
a)how to enable our Responsys account to allow JSON downloads from an http/https endpoint.
b)how to parse the resultant nested JSON using RPL.
Currently I’m using the following code for testing purposes:
<#assign response = httpUtil.URLtoString("http://data.nba.net/data/10s/prod/v1/2017/teams.json")>
<#assign team_info = jsonFactoryUtil.looseDeserializeSafe(response) >
<h1>${team_info.league.standard.nickname}</h1>
0