Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
JSON-LD Syntax and Safe Generation: @context, @type, @id, @graph in ASP.NET Core and Angular SSR
The rule for generating JSON-LD safely is to write text with JSON's own \u003C escape and put it on the page as a single @graph; UnsafeRelaxedJsonEscaping plus Html.Raw lets a </script> in a headline split the page and open the door to XSS. We look at @context, @type, @id and @graph, typed records in ASP.NET Core 10, the ScriptTagHelper detail that arrived with .NET 9, and duplicate scripts and silent data corruption in Angular 22 SSR, all with real output.
What Is Structured Data? Schema.org, JSON-LD and What Google Actually Does with It
Structured data means telling machines explicitly what a page is about, using the schema.org vocabulary and a syntax such as JSON-LD; Google uses it to understand pages and for rich result eligibility, but markup neither guarantees rich results nor is presented as a ranking factor. We write the same data in Microdata, RDFa and JSON-LD, dump the entity graph of a Bookstore page with .NET 10 and look at consumers beyond Google.