Category: SEO and Google Search

Google Rich Results: Invalid JSON-LD blocks structural data

Read this guide in Polish

Test results with extended elements reports parsing error even though the page visually works. The structural data code may have incorrect JSON or incompatible scheme property types.

How to determine the source of the error

Read JSON-LD from HTML page after production rendering, not only from JSX source.

Check the parser message and see if the dynamic content does not enter unsecured characters.

What to do step by step

1. Serialize the object as a valid JSON and safely save characters instead of constructing JSON-LD by concatenation string.

2 . Choose structural data types and fields corresponding to the actual content of the page; do not falsify the ratings.

How to check the score

JSON-LD passes the syntax test and the corresponding Google validator without critical errors.

What to do

Do not add a review scheme with non-existent opinions to force stars in the results.