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

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

Explorer ,
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

687

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.

Votes

Translate

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

Copy link to clipboard

Copied

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.

Votes

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

Copy link to clipboard

Copied

@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? 

Votes

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

Copy link to clipboard

Copied

LATEST

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

 

RaymondCamden_0-1683121884887.png

 

Votes

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