---
title: "Discussion on \"JSON-LD in the Next.js App Router: Typed Schema, XSS-Safe Serialization, and What Google Still Uses — Field Notes 8a12b6\" | Hashnode"
description: "Discussion on \"JSON-LD in the Next.js App Router: Typed Schema, XSS-Safe Serialization, and What Google Still Uses — Field Notes 8a12b6\". Headline: In the Next.js App Router, JSON-LD belongs in a plain <script type=\"application/ld+json\"> rendered by a Server Component, serialized with JSON.stringify(data).replace(/</g, '\\\\u003c') so pag"
url: "https://hashnode.com/posts/json-ld-in-the-next-js-app-router-typed-schema-xss-safe-serialization-and-what-google-still-uses-field-notes-8a12b6/6b0813f177fb86decf608a79"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JSON-LD in the Next.js App Router: Typed Schema, XSS-Safe Serialization, and What Google Still Uses — Field Notes 8a12b6](https://engahmed.hashnode.dev/json-ld-in-the-next-js-app-router-typed-schema-xss-safe-serialization-and-what-google-still-uses-field-notes-8a12b6?utm_source=hashnode&utm_medium=feed)

Headline: In the Next.js App Router, JSON-LD belongs in a plain <script type="application/ld+json"> rendered by a Server Component, serialized with JSON.stringify(data).replace(/</g, '\\\\u003c') so pag

5d ago · 10 min read · engahmed.hashnode.dev  
Read the article

## Written by

[Ahmed Mahmoud](https://hashnode.com/@ahmed-mahmoud)

@ahmed-mahmoud

  
[View profile](https://hashnode.com/@ahmed-mahmoud)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
