Complete the code to create a root node in a Firebase JSON tree.
{
"root": [1]
}The root node must have a valid string value. "rootValue" is a clear root node value.
Complete the code to add a child node named 'users' under the root.
{
"root": {
[1]: {}
}
}The child node should be named 'users' as specified.
Fix the error in the JSON tree by completing the missing key for a user ID.
{
"root": {
"users": {
[1]: {
"name": "Alice"
}
}
}
}User IDs must be strings in quotes. "user1" is the correct key format.
Fill both blanks to add two users with their names under 'users'.
{
"root": {
"users": {
[1]: {"name": "Bob"},
[2]: {"name": "Carol"}
}
}
}Use unique user IDs as keys for each user node.
Fill all three blanks to add a nested address object for user1.
{
"root": {
"users": {
"user1": {
"name": "Dave",
"address": {
"street": [1],
"city": [2],
"zip": [3]
}
}
}
}
}Address fields must be strings representing street, city, and zip code.
