Create json list

Six Stars

Create json list

Hello,

I want to get the next JSON format:

jsonFormatAttendu.JPG

And I get this format for the time:

jsonFormat.JPG

 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.

aggregateJson.JPG
tWriteJsonField.JPGThanks for your help Smiley Happy

Moderator

Re: Création d'une liste json

Hello,

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

Sabrina

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

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Downloads and Trials

Test drive Talend's enterprise products.

Downloads