在使用ExactTarget的文档时遇到了困难。下面的文档示例运行得很好,但我在将var Json设置为实际的JSON提要时遇到了问题。我遗漏了什么?
%%[ var @Json set @Json = ' [{"emailaddress":"john@example.com","Region":"West","State":"California","City":"San Francisco"},
{"emailaddress":"carla@example.com","Region":"Central","State":"Indiana","City":"Indianapolis"}]' ]%%
{{.datasource JSONVar type=variable maxRows = 20}}
{{.data}}
{ "target" : "@Json" }
{{/data}}
Email Address: {{emailaddress}}
Region: {{region}}
State: {{STATE}}
City: {{JSONVar.City}}
{{/datasource}}发布于 2015-12-07 19:29:06
您看过使用服务器端Javascript吗?Ampscript不包含解析JSON的函数。然而,SSJS确实如此。
另外,为了将来的参考,可以考虑在salesforce.stackexchange.com上在市场营销-云标签下发布问题。
参考:
https://stackoverflow.com/questions/34137307
复制相似问题