What API should I use to convert Java object to CSV. Can I use google-gson for java object conversion to CSV format?
The library json2flat can convert JSON documents to CSV format.
It doesn't depends upon any POJO's to get you CSV.
After all it's the user's perspective that how they want to view their JSON documents in CSV representation.