Complete the code to create a MongoDB document with a name field.
{ "name": "[1]" }The name field should be a string representing a person's name, like "Alice".
Complete the code to add an age field with a number value.
{ "age": [1] }The age field should be a number without quotes, like 30.
Fix the error in the document by choosing the correct boolean value for the active field.
{ "active": [1] }Boolean values in JSON are true or false without quotes and lowercase.
Fill both blanks to create a nested document with address and city fields.
{ "address": { "city": "[1]", "zip": [2] } }The city field is a string without extra quotes inside the code, so use New York. The zip code is a number, so use 10001 without quotes.
Fill all three blanks to create a document with a list of tags and a flag.
{ "tags": [[1], [2]], "flag": [3] }The tags list contains strings, so use "mongodb" and "database" with quotes. The flag is a boolean and should be true without quotes.