2014-07-04 52 views
0

我在導入json文件時出錯。在mongodb中導入我的json文件時出現錯誤

以下是我的錯誤。

I am getting this error

我的JSON文件:

{ 「城市」: 「ACMAR」, 「祿」:[-86.51557,33.584132], 「啪」:6055, 「狀態」: 「AL」 ,「_id」:「35004」} {「city」:「ADAMSVILLE」,「loc」:[-86.959727,33.588437],「pop」:10616,「state」:「AL」,「_id」:「35005 「}」 {「city」:「ADGER」,「loc」:[-87.167455,33.434277],「pop」:3205,「state」:「AL」,「_id」:「35006」} {「city」 :「KEYSTONE」,「loc」:[-86.812861,33.236868],「pop」:14218,「state」:「AL」,「_id」:「35007」} {「city」:「NEW SITE」 loc「:[-85.951086,32.941445],」pop「:19942,」狀態「: 「AL」,「_」,「35010」} {「city」:「ALPINE」,「loc」:[-86.208934,33.331165],「pop」:3062,「state」:「AL」 :「35014」} {「city」:「ARAB」,「loc」:[-86.489638,34.328339],「pop」:13650,「state」:「AL」,「_id」:「35016」} { 「city」:「BAILEYTON」,「loc」:[-86.621299,34.268298],「pop」:1781,「state」:「AL」,「_id」:「35019」} {「city」:「BESSEMER」 ,「loc」:[-86.947547,33.409002],「pop」:40549,「state」:「AL」,「_id」:「35020」} {「city」:「HUEYTOWN」,「loc」 「pop」:39677,「state」:「AL」,「_id」:「35023」} {「city」:「BLOUNTSVILLE」,「loc」:[-86.568628,34.092937],「pop 「:」9058,「state」:「AL」,「_id」:「35031」} {「city」:「BREMEN」,「loc」:[-87.004281,33.973664],「pop」:3448, :「AL」,「_id」:「35033」} {「city」:「BRENT」,「loc」:[-87.211387,32.9 3567],「pop」:3791,「state」:「AL」,「_id」:「35034」} {「city」:「BRIERFIELD」,「loc」:[-86.951672,33.042747],「pop」: 「城市」:「CALERA」,「loc」:[-86.755987,33.1098],「pop」:4675,「狀態」:「AL」,「_id」:「35035」} AL「,」_id「:」35040「} {」city「:」CENTERVILLE「,」loc「:[-87.11924,32.950324],」pop「:4902,」state「:」AL「,」_id「: {「city」:「CHELSEA」,「loc」:[-86.614132,33.371582],「pop」:4781,「state」:「AL」,「_id」:「35043」} {城市「:」COOSA PINES「,」loc「:[-86.337622,33.266928],」pop「:7985,」state「:」AL「,」_id「:」35044「}

+1

你可以發佈你想導入文件的一部分? –

+0

你正在導入的json文件 –

+0

我已經更新了我的json文件 – Mayur

回答

1

enter image description here退出mongo shell !

mongoimport是一個獨立的命令

只需執行的第二命令。

我不是2.6 MongoDB的,但我不認爲有這麼多的變化

+0

它不工作 – Mayur

+0

Thaks for it ..它真的起作用 – Mayur

+0

請問你能幫忙嗎?如何從json文件導入多個1集合。 – Mayur

相關問題