How to parse JSON object to CSV file using json2csv nodejs module

前端 未结 6 812
青春惊慌失措
青春惊慌失措 2020-12-10 07:44

I\'m currently learning how to parse a JSON object to a CSV file using the json2csv node module. Have never worked with JSON before, so this is all new to me.

My JSO

6条回答
  •  一向
    一向 (楼主)
    2020-12-10 08:20

    Check out Underscore.js pluck method - if you pass _.pluck(json, 'car') to json2csv's data instead of the original json, you should get what you're looking for.

提交回复
热议问题