Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everybody,
I show you my problem :
- I would like to have this json template filled in with values :
and right now, I have this :
In fact, I would like to make a transformation of my JSON template.
My job is :
My tFileInputJSON_3 is :
My row11 is :
My tWriteJSONField_2 is :
My row12 is :
My tFileOutputJSON_1 is :
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 :
But these are at null. Why ? Could you give me some clues to resolve It ?
Thanks,
Alex
Hi Talend community,
Finally, I succeeded to resolve my problem :
My input json looks like :
with these settings :
In my tWriteJSONField_3, I have this structure :
my tJavaRow is to transform some data (labels in JSON array) and so forth ...
In conclusion I have in my tFileOutputDelimited_2 :
The file produced is :
It'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
Hello,
What does your input json file look like?
Best regards
Sabrina
Hi Talend community,
Finally, I succeeded to resolve my problem :
My input json looks like :
with these settings :
In my tWriteJSONField_3, I have this structure :
my tJavaRow is to transform some data (labels in JSON array) and so forth ...
In conclusion I have in my tFileOutputDelimited_2 :
The file produced is :
It'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
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
Hi Sabrina,
It is already done ! ( https://community.talend.com/t5/Design-and-Development/Interrogation-about-tWriteJSONField-component...)
Alex