Reputation: 1999
I'm trying to import my json file (called users.json), this is the file content:
{
users:{
},
friends:{
}
}
I'm trying to import it to the firebase but it says "invalid json file". What am I doing wrong?
Upvotes: 0
Views: 910
Reputation: 138824
A JSON File shoul look like this:
{
"users" : {
"UID1" : {
"userEmail" : "name1@email,com",
"userName" : "name1",
},
"UID2" : {
"userEmail" : "name2@email,com",
"userName" : "name2",
},
},
"friends" : {
//
}
}
Hope it helps.
Upvotes: 0
Reputation: 6199
Every key in JSON file has to be surrounded by quotation marks.
{
"users":{
},
"friends":{
}
}
Upvotes: 2