Sub topic 5
Properties and the values they expect
This chapter assumes you can read JSON and write a basic @context and @type declaration, as covered in the previous chapter. It also assumes you know what a schema.org type is. Here you will learn what a property can hold, how to write each kind of value, and which mistakes cause validators to complain.
What a property is
A property is a key in a JSON-LD object that describes the thing named by @type. In "headline": "How to Brew Cold Coffee", headline is the property and the string is its value.
Each schema.org property documents its expected types. This is the list of value kinds the property accepts. The page for datePublished lists Date and DateTime. The page for author lists Organization and Person. The page for offers lists Offer and Demand.
Expected types are guidance, not a hard rule. A JSON-LD parser will not reject a string where an object is expected. A validator or search engine may warn you, ignore the property, or refuse to show a rich result. Treat the expected types as the contract your markup is checked against.
The kinds of values
Most values fall into five groups.
| Kind | How you write it in JSON | Example property |
|---|---|---|
| Text | A JSON string | `name`, `headline` |
| Number | A JSON number, or a string for prices | `ratingValue`, `price` |
| Boolean | `true` or `false` | `isAccessibleForFree` |
| Date and time | An ISO 8601 string | `datePublished` |
| URL | A string containing an absolute URL | `url`, `image` |
| Entity | A nested object, or a reference by `@id` | `author`, `offers` |
| Enumeration | A schema.org URL string | `availability` |
The sections below cover the ones that cause the most trouble.
Text
Text is a plain JSON string. Do not put HTML tags in it unless the property documentation says that is allowed. Search engines display the text, so markup would show up as literal characters.
Numbers and prices
Numbers such as ratingValue or reviewCount can be JSON numbers. A price is different. Schema.org defines price as Number or Text, and the usual advice is to write it as a string such as "39.90". A string keeps the trailing zero and avoids floating-point surprises. Use a dot as the decimal separator and no thousands separator. Write "1299.00", not "1.299,00" and not "€1,299".
The currency never belongs in the price. Put it in priceCurrency as a three-letter ISO 4217 code such as EUR or USD.
Dates and times
Dates use ISO 8601. A date alone is 2026-03-14. A date with a time and offset is 2026-03-14T08:00:00+00:00. Include the offset when the time matters, because a time without one is ambiguous for a reader in another time zone.
Formats such as 03/14/2026 or March 14, 2026 are not valid ISO 8601. Validators often flag them, and Google may ignore the date.
URLs
Properties such as url, image, and sameAs expect absolute URLs. Write https://example.com/images/kettle.jpg, not /images/kettle.jpg. A relative URL has no base in a JSON-LD block unless you set one, so it can resolve incorrectly or not at all.
Enumerations
An enumeration is a fixed set of allowed values. Schema.org models each allowed value as a named thing with its own URL. For example, availability accepts https://schema.org/InStock, https://schema.org/OutOfStock, and https://schema.org/PreOrder.
Write the full URL as a string. Consumers also generally accept the short form InStock, but the full URL is the safest choice because it works with any parser.
A worked example
This Product uses text, a URL, a nested entity, a price string, a currency code, and an enumeration.
{
"@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"
}
}Read it property by property:
nameanddescriptionare text.imageis an absolute URL pointing to an image file.offersexpects anOfferentity, so its value is an object with its own@type.priceis a string,priceCurrencyis a separate ISO code, andavailabilityis an enumeration URL.
Single values and lists
Most properties accept more than one value, even when the documentation lists a single type. To give several values, use a JSON array.
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Brew Cold Coffee",
"datePublished": "2026-03-14",
"image": [
"https://example.com/images/cold-coffee-16x9.jpg",
"https://example.com/images/cold-coffee-4x3.jpg",
"https://example.com/images/cold-coffee-1x1.jpg"
],
"author": [
{ "@type": "Person", "name": "Ana Torres" },
{ "@type": "Person", "name": "Luis Moreno" }
]
}In plain JSON-LD, a single value and an array containing that one value mean the same thing. Order is not significant unless you use the @list keyword, which a later chapter covers. Some consumers do care about the order of images, so put the preferred one first.
Text versus entity
Many properties accept both text and an entity. author accepts a Person, an Organization, and in practice often a plain string. The choice affects how much a machine can learn.
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Brew Cold Coffee",
"author": "Ana Torres"
}This is valid JSON, but the machine only sees a string. It cannot tell whether Ana Torres is a person or a company, and it has nowhere to attach a profile URL. Compare it with the nested form:
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Brew Cold Coffee",
"author": {
"@type": "Person",
"name": "Ana Torres",
"url": "https://example.com/authors/ana"
}
}Use the object form whenever you have more than a name. The next chapter covers nesting in depth.
Common errors
The same few mistakes appear again and again.
- Currency inside the price.
"price": "€39.90"fails. Use"price": "39.90"with"priceCurrency": "EUR". - Wrong date format. Use
2026-03-14, not14/03/2026. - Relative URLs. Use
https://example.com/a.jpg, not/a.jpg. - Text where an entity is required. A bare string for
offerscarries no price, so the Offer is useless. - Misspelled property names. Property names are case-sensitive.
datepublishedis notdatePublished, and a parser will silently ignore it. - Invented properties. If a property does not exist on schema.org, nothing understands it. Look it up first.
- Empty values.
"description": ""ornulladds noise. Omit a property you have no value for.
Inherited properties
Schema.org types form a hierarchy. A Person is a kind of Thing, and every Thing has name, url, description, image, and sameAs. A type inherits every property of its parents. This is why a Product and an Organization can both take name and url, and why a page for a specific type lists "Properties from Thing" at the bottom.
When you look up a property, check the type you are using and its parents. A property listed under a parent is valid on the child.
Checking values in code
A quick script can catch format problems before a page is published. This one checks a price string and a date.
import re
from datetime import datetime
def check_offer(offer):
problems = []
price = str(offer.get("price", ""))
if not re.fullmatch(r"\d+(\.\d+)?", price):
problems.append("price must be digits with an optional dot: " + price)
if not re.fullmatch(r"[A-Z]{3}", offer.get("priceCurrency", "")):
problems.append("priceCurrency must be a 3-letter ISO 4217 code")
return problems
def check_date(value):
try:
datetime.fromisoformat(value)
return []
except ValueError:
return ["not an ISO 8601 date: " + value]
print(check_offer({"price": "€39.90", "priceCurrency": "EUR"}))
print(check_date("14/03/2026"))
print(check_date("2026-03-14T08:00:00+00:00"))The first call reports the euro sign in the price. The second reports the bad date. The third returns an empty list.
Summary
- Each property has expected types listed on schema.org. Follow them.
- Write prices as strings, with the currency in
priceCurrency. - Write dates in ISO 8601 and URLs as absolute URLs.
- Write enumeration values as full schema.org URLs.
- Use arrays for multiple values and objects when a string would lose information.
- Property names are case-sensitive, and parsers ignore misspelled ones silently.
Exercise
A product page has this Offer. Find three problems and write the corrected version. { "@type": "Offer", "price": "$1,299.00", "availability": "in stock", "url": "/products/laptop" }
Show answer
First, the price contains a currency symbol and a thousands separator. Second, the availability is free text instead of an enumeration URL. Third, the url is relative. The corrected Offer is { "@type": "Offer", "price": "1299.00", "priceCurrency": "USD", "availability": "https://schema.org/InStock", "url": "https://example.com/products/laptop" }. The currency moves to priceCurrency, and the domain in the url is whatever the site actually uses.
Exercise
Why is "author": "Ana Torres" valid JSON-LD but often a weaker choice than a nested Person object?
Show answer
A bare string gives the machine only a name. It cannot tell whether the author is a person or an organization, and it cannot attach a profile URL or other properties. A nested Person object with @type and url carries that information.
Exercise
You write "datepublished": "2026-03-14" in an Article. The JSON parses without errors. What happens, and how do you find the problem?
Show answer
Property names are case-sensitive, so datepublished is not the schema.org property datePublished. Parsers ignore it without an error. A validator such as the Schema Markup Validator or the Rich Results Test will show that the date is missing or that the property is unknown.