Complete the code to create a JSON body with a user's name.
{
"name": "[1]"
}The JSON body requires a string value for the "name" key. "John Doe" is a valid string.
Complete the JSON body to include an age field with a number value.
{
"age": [1]
}The age field should be a number without quotes in JSON. 30 is a valid number.
Fix the error in the JSON body by completing the missing value for the "isActive" field.
{
"isActive": [1]
}Boolean values in JSON are lowercase true or false without quotes. "true" is a string, which is incorrect.
Fill both blanks to create a JSON body with a list of hobbies.
{
"hobbies": [[1], [2]]
}JSON array elements must be strings with quotes. "reading" and "swimming" are correct string values.
Fill all three blanks to create a JSON body with nested user info.
{
"user": {
"name": [1],
"age": [2],
"isMember": [3]
}
}The name is a string with quotes, age is a number without quotes, and isMember is a boolean false without quotes.