尝试在MongoDB中导入JSON文件时出错?

时间:2016-02-24 01:39:19

标签: javascript json mongodb mongoimport

当我尝试导入以下文件时,我在命令终端中得到了这个:

    C:\Program Files\MongoDB\Server\3.2\bin>mongoimport --db test --collection horse_data --file horse1.json
2016-02-23T20:31:18.731-0500    connected to: localhost
2016-02-23T20:31:18.736-0500    Failed: error processing document #1: invalid character 'h' in literal Timestamp (expecting 'i')
2016-02-23T20:31:18.743-0500    imported 0 documents

使用以下horse1.json文件(我并不完全确定是正确编写的,我对JavaScript的经验很少:

{
    _horse_name:"Seabiscuit",
    _horse_gender:"Male",
    _breed:"Thoroughbred",
    _weight:1199,
    _date_of_birth:"May 23, 1933",
    _sire:"Hard Tack",
    _mare:"Swing On",
    _auction_price:104260
}

老实说我真的很难过。有什么指针吗?

0 个答案:

没有答案