UUIDs Across Formats: JSON and XML
UUIDs are portable across text-based formats. This article shows how to represent, validate, and document UUIDs in JSON and XML.
JSON
{
"id": "4aa0f5c9-1b0d-4632-9b6d-8f8a9c643e1c"
}
XML
4aa0f5c9-1b0d-4632-9b6d-8f8a9c643e1c
Schema Tips
- Document expected UUID version (usually v4).
- Use regex or built-in formats for validation.
- Keep UUIDs lowercase for consistency.