Put automatically a JSON file on one line for a componant Jira output

Six Stars

Put automatically a JSON file on one line for a componant Jira output

Hi,

 

During my searching, I would like to know if there is a tool in Talend to transform automatically a json file (indented on many lines) to a json file with "only one" line in order to work it with the Jira output.

 

Thanks in advance,

 

Alex

Moderator

Re: Put automatically a JSON file on one line for a componant Jira output

Hello,

Could you please elaborate your case with an example with input and expected output values?

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.
Six Stars

Re: Put automatically a JSON file on one line for a componant Jira output

Hi, yes sure !

 

For instance, I would like to transform this file :

 

{
	"fields": {
		"project": {
			"key": "TRL"
		},
		"summary": "ALEX IMPORT A TASK",
		"description": "ALEX IMPORT A TASK",
		"issuetype": {
			"name": "Bug_webapp"
		}
	}
}

to one line automatically :

 

{ 	"fields": { 		"project": { 			"key": "TRL" 		}, 		"summary": "ALEX IMPORT A TASK", 		"description": "ALEX IMPORT A TASK", 		"issuetype": { 			"name": "Bug_webapp" 		} 	} }

Because now I have to use, everytime, manually the shortcut ctrl + J to join the content of the file on one line to prepare this JSON file for the outputJiraComponant.

 

Have you got any ideas ?

 

Best regards

 

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Introduction to Talend Open Studio for Data Quality

Find out about Talend Open Studio for Data Quality

Watch Now

Enabling Data Governance

Learn how to enable Data Governance

Watch Now

The Definitive Guide to Government Data Quality

Take a peek at the definitive guide to Government Data Quality

Read