I'm trying to convert the json object into a CSV file using java.
My json :
{"Type":"Camera","modelName":"Alpha","asinno":"B0YUSAWZ"}
Expected O/p:
Type,modelName,asinno
Camera,Alpha,B0YUSAWZ
I have tried using "CDL.toString()", but toString is expecting a json array but not a simple json object. How can we deal with simple json ?
Can anyone please help me out...