I have a JSON Array that looks like this:
{
"Qty": "12",
"Size": "XL",
"Colour": "Blue",
"InSale": "True"
},
{ "Qty": "13",
"Size": "M",
"Colour": "Green",
"InSale": "False"}]
I want to convert this into a tab separated String. I am able to convert into comma separated string like this and able to write to a file:
String csvString = CDL.toString(ProductsJSONArray);
FileUtils.writeStringToFile(file, csvString);
How can I achieve it for tab separated String? This is the output I am expecting:
Qty Size Color InSale
12 XL Blue True
13 M Green False