Sub topic 5
Properties and the values they expect
This chapter assumes you can read JSON and know how to write a JSON-LD object with @context and @type. Here you will learn what a schema.org property accepts as a value, and which mistakes make markup invalid or useless.
A property is a key with an expected value type
In JSON-LD, each key other than a keyword (a name starting with @) is a schema.org property. Every property documents the value types it expects. On schema.org, the page for price on Offer lists Number and Text. The page for author on Article lists Organization and Person.
Most expected values fall into four groups:
| Value group | JSON form | Example property |
|---|---|---|
| Text | string | `name`, `headline`, `description` |
| Number | string or number | `price`, `ratingValue` |
| URL | string | `url`, `image`, `sameAs` |
| Entity | nested object | `author`, `offers`, `publisher` |
Dates and times are also written as strings, in ISO 8601 format. "2026-03-14" is a date. "2026-03-14T08:00:00+00:00" is a date with a time and a UTC offset.
Values written as strings
Some strings carry more meaning than plain text. The Product example below shows three of them:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Stainless Steel Pour-Over Kettle",
"image": "https://example.com/images/kettle.jpg",
"description": "A 1-liter gooseneck kettle for pour-over coffee.",
"offers": {
"@type": "Offer",
"price": "39.90",
"priceCurrency": "EUR",
"availability": "https://schema.org/InStock",
"url": "https://example.com/products/kettle"
}
}priceis the string"39.90". Write it as a plain number with a period as the decimal separator. Do not include a currency symbol or thousands separators. The currency goes inpriceCurrencyas a three-letter ISO 4217 code such asEUR.availabilityis an enumeration, a fixed list of allowed values. Each value is a URL in the schema.org namespace. Write"https://schema.org/InStock", not"in stock".imageandurlhold absolute URLs. A relative path such as/images/kettle.jpgis ambiguous when a machine reads the markup outside the page.
One value or many
A property can usually take several values. Use a JSON array:
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Brew Cold Coffee",
"image": [
"https://example.com/images/cold-coffee-16x9.jpg",
"https://example.com/images/cold-coffee-4x3.jpg"
],
"author": [
{ "@type": "Person", "name": "Ana Torres" },
{ "@type": "Person", "name": "Luis Ortega" }
]
}A single value and an array with one item mean the same thing. Whether a consumer such as a search engine uses all the values is a separate question, covered later in the chapter on search engine guidelines.
Common mistakes with values
- Wrong type for the property.
"author": "Ana Torres"is accepted by many tools, but"author": { "@type": "Person", "name": "Ana Torres" }gives consumers more to work with. - Units and symbols inside values.
"price": "€39,90"cannot be parsed as a number. - Invented names. Property names are case-sensitive.
datepublishedandpublishedDatedo not exist. UsedatePublished. - Properties on the wrong type.
pricebelongs onOffer, not directly onProduct. A validator reports this as an unknown property for that type.
Exercise
A product page shows "$1,299.00" and "In stock". Write the price, priceCurrency, and availability entries of the Offer.
Show answer
"price": "1299.00", "priceCurrency": "USD", "availability": "https://schema.org/InStock". The price has no currency symbol or thousands separator, the currency is a separate ISO 4217 code, and the availability is a schema.org enumeration URL.
Exercise
A markup author writes "datePublished": "March 14, 2026" and "image": "/img/a.jpg". Name the two problems and give corrected values.
Show answer
The date must be ISO 8601, for example "2026-03-14". The image must be an absolute URL, for example "https://example.com/img/a.jpg".