如何在不向Firebase中的对象添加键的情况下通过REST方法将对象添加到列表中?
现在我有了这个结构:
{
"-KAG0XPYF_n8DRT55lwV": {
"GCMTocken": "rtdjhsrfjt546456",
"firstName": "Pasha",
"gender": 1,
"lastName": "Strongman",
"likes": 0,
"nickname": "drake1804",
"uid": "facebook:957484857633657"
},
"-QPG0XPYF_n8DRT5VM": {
"GCMTocken": "rfgjfrty1232",
"firstName": "Josh",
"gender": 1,
"lastName": "Wayne",
"likes": 0,
"nickname": "nick",
"uid": "facebook:957484492264"
}
}
我需要这样:
{
{
"GCMTocken": "rtdjhsrfjt546456",
"firstName": "Pasha",
"gender": 1,
"lastName": "Strongman",
"likes": 0,
"nickname": "drake1804",
"uid": "facebook:957484857633657"
}
}