Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

read data from Excel and convert to JSON using groovy script in scriptrunner

sgole
Contributor
February 19, 2020

i have readied  data from excel and store in List<List<String>> . the data is below .now i want to convert below data in json format ..how can i do that 

image.png

 

 

3 answers

1 accepted

0 votes
Answer accepted
sgole
Contributor
May 12, 2020

thanks . i have solved myself by referring below link,'

https://www.dev2qa.com/convert-excel-to-json-in-java-example/

0 votes
Mehhss January 7, 2024

May I ask how did you read the excel data from Scriptrunner using groovy script?

0 votes
Nic Brough (Adaptavist)
Contributor
March 3, 2020

I am slightly unsure of what you are trying to do here. 

Your first line of code is reading a .csv file and you want the output in JSON format, I understand that, but what does this have to do with a REST endpoint?

Perhaps if you could explain what you're trying to do overall, rather than think of a specific solution or function you think may help, we can better guide you?

sgole
Contributor
May 7, 2020

@Nic Brough (Adaptavist)  i have modified question please check

Suggest an answer

Log in or Sign up to answer