Rest API - Request and Response Format
You want to send a nested JSON object in the request body to create a user with address info:
Which Content-Type header and body format should you use to ensure the server correctly understands this nested data?
{
"name": "Eve",
"address": {
"street": "123 Main St",
"city": "Townsville"
}
}Which Content-Type header and body format should you use to ensure the server correctly understands this nested data?
