Create json list

Six Stars

Create json list


I want to get the next JSON format:


And I get this format for the time:


 In fact, the difference is in the [] in the produit_id1 because there is only one message so the work considers this is not a list and not add the hook.

In the second example there is no problem, there many message for a product if I am an aggregate and work considers a list.

So my problem is how to add the hook [] in each product.

This is a screenshot of my work.

tWriteJsonField.JPGThanks for your help Smiley Happy


Re: Création d'une liste json


This is an international forum and English is the language we use. Posting in English will allow you to get more visibility and more help. Thanks for your understanding!

Best regards


Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables


How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration


Downloads and Trials

Test drive Talend's enterprise products.