Print a list of strings
Print a list of strings / numbers
The goal is to print each elements into a newline.
The following JSON dataset is used as an example:
{
"fruits": [ "Banana", "Apple", "Strawberry", 20, "Orange" ]
}
The solution is to join all elements with new line characters \n with :arrayJoin, then convert them into DOCX/ODS/ODT/PDF formats with :convCRLF, such as:
{d.fruits:arrayJoin('\n'):convCRLF()}
![ODT template edited with LibreOffice](https://storage.crisp.chat/users/helpdesk/website/f355e91d7615e000/screenshot-2022-09-05-at-15413_ebu24p.png)
![PDF preview on the right, and JSON dataset on the left - Carbone Cloud Studio](https://storage.crisp.chat/users/helpdesk/website/f355e91d7615e000/screenshot-2022-09-05-at-15421_eevdh7.png)
Learn more:
arrayJoin documentation
convCRLF documentation
Updated on: 09/09/2022
Thank you!