Six Stars

How to re structure my JSON structure ?

Hi Talend community,

 

During my searching, I would like advice about this problem.

 

From this JSON file :

 

the json squeletonthe json squeleton

I am searching to repeat this structure each time I have one line of content in this label : 

"summary": "blah blah",

That is :

{
	"issueUpdates": [{
			"fields": {

				"project": {
					"key": " "
				},
				"summary": "",
				"description": "",
				"issuetype": {
					"name": ""
				},
				"reporter": {
					"name": ""
				},
				"assignee": {
					"name": ""
				},
				"labels": [""]
			}


		},

		{
			"fields": {
				
				"project": {
					"key": " "
				},
				"summary": "",
				"description": "",
				"issuetype": {
					"name": ""
				},
				"reporter": {
					"name": ""
				},
				"assignee": {
					"name": ""
				},
				"labels": [""]
				
				
			}
		}
	]
}

You see I would like to repeat a lot of times the structure fields and within one line of content in "summary".

 

For this thing I use the componant tWriteJSONField where I defined this JSON structure :

image.png

 

But in out, I have this JSON structure :

image.png

 

And I would like one structure " fields " by one " summary " content line. I am sure there is an error in my definition of JSON structure (tWriteJSONFields). 

Any clues ?

1 REPLY
Four Stars

Re: How to re structure my JSON structure ?