JSON (JavaScript Object Notation) is a text format for representing structured data as name-value pairs. In REST endpoints, Spring commonly formats returned Java objects as JSON and decodes JSON request bodies into Java objects. section 10.3.1 section 10.4
An object appears as paired names and values; a collection appears as an array of objects. If Spring cannot decode a JSON request body into the expected type, it returns a 400 Bad Request response. section 10.3.1 section 10.4
{
"name": "France",
"population": 67
}A Country response becomes a JSON object with name and population fields. section 10.3.1









































