Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Explorer ,
Mar 15, 2022 Mar 15, 2022

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
865
Translate
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.

Translate
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.

Translate
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
New Here ,
May 02, 2023 May 02, 2023

@Raymond Camden 
The MS Word Add-in for Adobe Document Generation has a feature to generate tags from JSON for drag-and-drop - does this only work for top-level variables? 

Translate
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
Adobe Employee ,
May 03, 2023 May 03, 2023
LATEST

It works just fine with values under the root. I literally used the JSON above and it worked just fine:

 

RaymondCamden_0-1683121884887.pngexpand image

 

Translate
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