Review and rating markup, done right
The JSON-LD Review Schema Builder produces either a single Review or an AggregateRating block, correctly nested inside the item being reviewed. Review snippets add eye-catching stars to your search listing, which lifts click-through on commercial and local pages.
How it works
When you choose Review, the tool builds a Review object with an author of type Person, a reviewBody, an optional datePublished, and a reviewRating Rating carrying ratingValue, bestRating and worstRating. When you choose AggregateRating, it builds an AggregateRating with ratingValue, reviewCount, bestRating and worstRating. In both cases the rating is wrapped inside an itemReviewed object whose @type and name you set, so the output is a complete, standalone block. The rating value is clamped to the scale you define.
Tips and example
Match the itemReviewed @type to the real thing on the page — Product, LocalBusiness, Recipe or Organization are common. Keep ratingValue within worstRating and bestRating. A single review rating looks like this:
"reviewRating": {
"@type": "Rating",
"ratingValue": "5",
"bestRating": "5",
"worstRating": "1"
}