Complete the code to define a JSON request body with a user's name.
{
"name": "[1]"
}The request body should have the user's name as a string value. "John" is a valid name string.
Complete the code to add an age field as a number in the JSON request body.
{
"age": [1]
}The age should be a number without quotes in JSON. So 25 is correct.
Fix the error in the JSON request body by completing the missing value for the 'active' field.
{
"active": [1]
}The 'active' field is a boolean and should be true or false without quotes in JSON.
Fill both blanks to create a JSON request body with a list of tags and a count of tags.
{
"tags": [1],
"count": [2]
}The 'tags' field should be a JSON array of strings, and 'count' should be a number representing how many tags there are.
Fill all three blanks to create a JSON request body with a nested object for address.
{
"user": "[1]",
"address": {
"city": "[2]",
"zip": [3]
}
}The 'user' and 'city' fields are strings, so they need quotes. The 'zip' code is a number without quotes.