You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Issues parsing JSON with multiple arrays

Question
11
Views
0
Comments

I'm having issues grabbing, parsing and including various values from a JSON payload that Responsys receives as part of an incoming custom event payload.

In my email, I have the following code:

<#assign o=parsejson("contributions"?eval)>           

          <#list o["allowances"] as cont>

            ${cont}

          </#list>


At this point I'm trying to just simply pull the "description" value and incorporate it into the body of the email by using the code above. But I eventually want to be able to extract the values from objects in a sub-array (e.g., products.Units).

However, I continue getting various error messages on the Responsys side when it attempts to compile the HTML and send the email.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!