WebAPIContrib.Core
WebAPIContrib.Core copied to clipboard
Flatten custom object json to csv
Hi, I found the csv formatter flatten custom object as 'object name'. It seems not to like ToString() method. CsvOutputFormatter throws a nullreferenceexception in that case. And array is shown as 'system.string []'. Is there any way to customize it like '{'test', 'this'}'
Although I cannot comment on the existing csv output formatter, I can tell you that the new output formatter is being developed at the moment. Please take a look at the following issue and let me know if that would solve your problem:
https://github.com/WebApiContrib/WebAPIContrib.Core/issues/133