zemirco / json2csv

Convert json to csv with column titles
http://zemirco.github.io/json2csv
MIT License
2.72k stars 363 forks source link

Not able to handle data extracted from MongoDb #146

Closed skokovsergey closed 6 years ago

skokovsergey commented 8 years ago

Example:

{"_id" : ObjectId("580105760cf2df7cd2c181ba"),
"someDate" : ISODate("2016-03-31T04:00:00.000Z")}
knownasilya commented 8 years ago

Using the function form of value hee should help. https://github.com/zemirco/json2csv#example-fields-option

skokovsergey commented 8 years ago

I'm trying to use it as command line utility to convert data from one format to another. So, it's easy to define this functions in the utility. Otherwise i have to just remove functions from source file. But it's extra step.

knownasilya commented 8 years ago

You could just define your fields and leave out the troublesome ones.

juanjoDiaz commented 6 years ago

Is this still an issue? Can you elaborate on some steps to reproduce it?

juanjoDiaz commented 6 years ago

I'll close this for a lack of answer.

Feel free to reopen if you still think that is an issue.