Using document generation API, do I have to flatten nested lists?

Community Beginner ,
Mar 15, 2022 Mar 15, 2022

Copy link to clipboard

Copied

Trying to access variables 2-3 levels deep,  to be able to access variables that deep, do I need to flatten first?  Thanks in advance.

TOPICS
Document Generation API

Views

57

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Mar 18, 2022 Mar 18, 2022

You shouldn't need to. Given JSON like so:

 

{
"person": {
"name":{
"first":"Ray"
}
}
}

(Pardon the lack of indentation.) I could then use {{ person.name.first }} in my document.

Likes

Translate

Translate
Adobe Employee ,
Mar 18, 2022 Mar 18, 2022

Copy link to clipboard

Copied

LATEST

You shouldn't need to. Given JSON like so:

 

{
"person": {
"name":{
"first":"Ray"
}
}
}

(Pardon the lack of indentation.) I could then use {{ person.name.first }} in my document.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources