1 import type { Thing, WithContext } from "schema-dts"
2
3 export function getJsonLd<T extends Thing>(data: WithContext<T>): string {
4 return JSON.stringify(data, null, 2).replace(/</g, "\\u003c")
5 }