2
當試圖一個HashMap推到使用Firebase REST API列表,任何項:具有一個空數組作爲值值對將被默默地丟棄,例如:空陣列滴入POST請求火力
curl -X POST -d '{"name": "Persists", "words": ["what", "is", "this"], "toBeDropped": []}' "https://fbdev.firebaseio.com/channels/example.json?auth=sometoken
導致火力地堡數據結構:
{
"random-id": {
"name": "Persists",
"words": ["what", "is", "this"]
}
}
這導致的問題我們的客戶端上,因爲他們希望toBeDropped是在這種情況下[]
而不是null
。
你能提供一個記錄這種行爲的鏈接嗎? – 2017-02-10 06:04:34