4

I am developing an application where I need to export JSON Data to excel sheet. I searched in google . But I didn't get any good tutorial. can you suggest me any tutorial. this is my exact requirement. But I need the same in Java

chitti
  • 121
  • 1
  • 4
  • 15

1 Answers1

7

Questions on exporting JSON to CSV have been previously asked here and a response was provided here: Converting JSON to XLS/CSV in Java

However since you asked for a tutorial this page shows an example with a different approach.

Hope that helps

Community
  • 1
  • 1
pelumi
  • 1,530
  • 12
  • 21
  • I am getting compliletime error at this line JSONArray docs = response.getJSONArray("infile"); asking me to create local variable. – chitti Jan 21 '15 at 13:07
  • Since I can't see your full code, I'm not sure which local variable you're referring to but it seems like the variable 'response' is the problem... Where did you declare it? – pelumi Jan 21 '15 at 13:11