json schema
{ "$id": "https://example.com/person.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Person", "type": "object", "properties": { "firstName": { "type": "string", "description": "The person's first name." }, "lastName": { "type": "string", "description": "The person's last name." }, "age": { "description": "Age in years which must be equal to or greater than zero.", "type": "integer", "minimum": 0 } } }
Source: json-schema.org
JSON schema enumerated type
{ "type": "array", "items": { "type": "string", "enum": ["one", "two", "three"] } }
Source: stackoverflow.com
json schema script
<script type="application/ld+json"> { "@context": "https:\/\/schema.org", "@type": "FAQPage", "mainEntity": [[]] } </script>