Performance: Why request bodies carry structured data
MEDIUM IMPACT
This affects the network payload size and server processing time during API calls, impacting page load and interaction speed.
POST /api/data HTTP/1.1 Content-Type: application/json {"name":"John","age":30,"city":"NY"}
POST /api/data HTTP/1.1 Content-Type: text/plain The user's name is John, age is 30, city is NY
| Pattern | Payload Size | Server Parsing Cost | Network Efficiency | Verdict |
|---|---|---|---|---|
| Unstructured plain text | Larger due to encoding | High due to manual parsing | Low | [X] Bad |
| Structured JSON | Smaller and predictable | Low due to automatic parsing | High | [OK] Good |