如何通過Solr Admin Documents頁面添加多個JSON文檔?預計:OBJECT_START,但在[16]獲得ARRAY_START
我試圖用JSON:
[
{
"id" : "001",
"name" : "Ram",
"age" : 53,
"Designation" : "Manager",
"Location" : "Hyderabad",
},
{
"id" : "002",
"name" : "Robert",
"age" : 43,
"Designation" : "SR.Programmer",
"Location" : "Chennai",
},
{
"id" : "003",
"name" : "Rahim",
"age" : 25,
"Designation" : "JR.Programmer",
"Location" : "Delhi",
}
]
點擊後提交文件,它會返回錯誤:
Status: error Error: Bad Request "msg": "Expected: OBJECT_START but got ARRAY_START at [16]", "code": 400
我只是嘗試,它仍然會返回同樣的錯誤味精請求無效:預期:OBJECT_START但在[16] –
嘗試使用了ARRAY_START {而非[和}代替] – selvarajmas
據我們用{代替[和}而不是]它返回JSON解析錯誤。 順便說一句,我仍然通過語法 ./post -c name_core file_include_json_content.json通過終端在json之上發佈 –