You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Convert Json to csv using groovy script

in Planning 12 comments

Summary:

Hello all,

Here is the json link: using this I'm able to display the content in jobs.
I want to generate into csv file in inbox/outbox explorer.

This is my code:

def connectionName = "JSON_TEST"
HttpResponse<String> jsonResponse = operation.application.getConnection("$connectionName")
.get()
.header("Content-Type", "application/json")
.asString();

println(jsonResponse.body)

Output:

How to pick specific parameters like id,names which is displaying in jobs. So if i know that i will try to generate csv file using csv writer.

Any suggestions on this, Thanks in advance

Krishna


Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!