0
0
Postmantesting~10 mins

JSON body in Postman - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a JSON body with a user's name.

Postman
{
  "name": "[1]"
}
Drag options to blanks, or click blank then click option'
Anull
BJohn Doe
Ctrue
D12345
Attempts:
3 left
💡 Hint
Common Mistakes
Using numbers or boolean values instead of a string for the name.
2fill in blank
medium

Complete the JSON body to include an age field with a number value.

Postman
{
  "age": [1]
}
Drag options to blanks, or click blank then click option'
A"twenty"
B"30"
C30
Dtrue
Attempts:
3 left
💡 Hint
Common Mistakes
Putting numbers inside quotes, making them strings.
Using boolean values instead of numbers.
3fill in blank
hard

Fix the error in the JSON body by completing the missing value for the "isActive" field.

Postman
{
  "isActive": [1]
}
Drag options to blanks, or click blank then click option'
A"true"
BFalse
C"false"
Dtrue
Attempts:
3 left
💡 Hint
Common Mistakes
Using capitalized True or False instead of lowercase true or false.
Putting boolean values inside quotes.
4fill in blank
hard

Fill both blanks to create a JSON body with a list of hobbies.

Postman
{
  "hobbies": [[1], [2]]
}
Drag options to blanks, or click blank then click option'
A"reading"
B"swimming"
Creading
Dswimming
Attempts:
3 left
💡 Hint
Common Mistakes
Leaving out quotes around string elements in the array.
5fill in blank
hard

Fill all three blanks to create a JSON body with nested user info.

Postman
{
  "user": {
    "name": [1],
    "age": [2],
    "isMember": [3]
  }
}
Drag options to blanks, or click blank then click option'
A"Alice"
B28
Cfalse
D"28"
Attempts:
3 left
💡 Hint
Common Mistakes
Putting numbers or booleans inside quotes.
Using capitalized boolean values.