-3

Have a requirement where jsonarray data is to be converted and written in an excel file in JAVA. Below is a sample format of the JSON that i receive from the rest api of a marketing tool ActOn:

{
"offset":0,
"count":3,
"totalCount":300,
"result":[
{
"a1":a,
"b1":b,
"c1":c
},
{
"a2":a,
"b2":b,
"c2":c
},
{
"a3":a,
"b3":b,
"c3":c
},
.
.
.
.
.
.
,
{
"an":a,
"bn":b,
"cn":c
}
]
Youcef LAIDANI
  • 55,661
  • 15
  • 90
  • 140

1 Answers1

0

You can use CSV format instead of xml or xmls. CSV Format Specification So, you don't need any specific libraries and so on. Just use \n to split rows and , to split columns.

Roman Dzhadan
  • 168
  • 1
  • 8