Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Restructuration of my JSON template

Hi everybody,

 

I show you my problem :

 

- I would like to have this json template filled in with values :

 

0683p000009LrWr.png

 

and right now, I have this :

 

0683p000009Lrfq.png

 

In fact, I would like to make a transformation of my JSON template.

 

My job is :

 

0683p000009LrfI.png

 

My tFileInputJSON_3 is :

 

0683p000009LrG4.png

 

My row11 is :

 

0683p000009Lrg5.png

 

My tWriteJSONField_2 is :

 

0683p000009LreL.png

 

My row12 is :

 

0683p000009LrI6.png

 

My tFileOutputJSON_1 is :

 

0683p000009LrNj.png

 

Actually all the content is in this label "summary" :

"summary": "{\"fields\":{\"project\":{\"key\":\"TRL\"},\"Summary\":[\"Product\",\"Pouvoir générer des par défaut. \\n\"],\"description\":[\"bak\",\"boom\"],\"issuetype\":{\"name\":[\"Task\"]},\"reporter\":{\"name\":[[\"562\"],[\"562dd\"]]},\"assignee\":{\"name\":[]},\"labels\":[\"Module\",\"Correos\"]}}",

I would like to dispatch the contents across these labels :

 

0683p000009LqwU.png

But these are at null. Why ? Could you give me some clues to resolve It ?

Thanks,

Alex

 

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Talend community,

 

Finally, I succeeded to resolve my problem :

 

0683p000009Ls18.png

 

My input json looks like :

 

0683p000009Ls0u.png

with these settings :

0683p000009LrEe.png

In my tWriteJSONField_3, I have this structure :

0683p000009Lrwe.png

 

my tJavaRow is to transform some data (labels in JSON array) and so forth ...

 

In conclusion I have in my tFileOutputDelimited_2 :

 

0683p000009Lrfn.png

 

The file produced is :

 0683p000009LrjS.pngIt's better if the JSON string pass the JSONLint ...

 

 

Here It is !

 

Now I have an other question but I think to develop it in a other topic

 

Alex

 

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hello,

What does your input json file look like?

Best regards

Sabrina

Anonymous
Not applicable
Author

Hi Talend community,

 

Finally, I succeeded to resolve my problem :

 

0683p000009Ls18.png

 

My input json looks like :

 

0683p000009Ls0u.png

with these settings :

0683p000009LrEe.png

In my tWriteJSONField_3, I have this structure :

0683p000009Lrwe.png

 

my tJavaRow is to transform some data (labels in JSON array) and so forth ...

 

In conclusion I have in my tFileOutputDelimited_2 :

 

0683p000009Lrfn.png

 

The file produced is :

 0683p000009LrjS.pngIt's better if the JSON string pass the JSONLint ...

 

 

Here It is !

 

Now I have an other question but I think to develop it in a other topic

 

Alex

 

Anonymous
Not applicable
Author

Hello,

Thanks for your feedback and sharing your solution with us. Feel free to create a new topic on forum for your another question.

Best regards

Sabrina

Anonymous
Not applicable
Author