WebAPIContrib.Core icon indicating copy to clipboard operation
WebAPIContrib.Core copied to clipboard

Flatten custom object json to csv

Open yongkeecho opened this issue 7 years ago • 1 comments

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'}'

yongkeecho avatar May 21 '18 21:05 yongkeecho

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

piotrkolodziej avatar May 22 '18 01:05 piotrkolodziej