Convert Json to csv using groovy script
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
Tagged:
0