In JSON, URLs should be strings enclosed in double quotes without angle brackets or unquoted text.
Step 2: Identify the correct format
"related": "https://api.example.com/users/123/orders" correctly uses a string with the full URL in quotes. Options B and C are invalid JSON strings, and D uses an object instead of a string.
Final Answer:
"related": "https://api.example.com/users/123/orders" -> Option A
Quick Check:
Related link URL must be a quoted string [OK]
Quick Trick:URLs in JSON must be quoted strings without brackets [OK]
Common Mistakes:
Leaving URLs unquoted
Using angle brackets around URLs
Using objects instead of strings for links
Master "HATEOAS and Linking" in Rest API
9 interactive learning modes - each teaches the same concept differently