按照JSON Schema导出数据

时间:2016-09-07 11:39:58

标签: mongodb

我的MongoDB上有很多字段,但是我只想导出那些出现在我的JSON Schema上的字段。

这是我的JSON架构,我希望这些字段为.CSV:

{
  "names": [
    {
      "source": 0,
      "order": 0,
      "version": 0,
      "registrationDate": "",
      "endDate": "",
      "name": "",
      "language": ""
    }
  ],
  "auxiliaryNames": [
    {
      "source": 0,
      "order": 0,
      "version": 0,
      "registrationDate": "",
      "endDate": "",
      "name": "",
      "language": ""
    }
  ],
  "addresses": [
    {
      "source": 0,
      "version": 0,
      "registrationDate": "",
      "endDate": "",
      "careOf": "",
      "street": "",
      "postCode": "",
      "city": "",
      "language": "",
      "type": 0,
      "country": ""
    }
  ]

0 个答案:

没有答案