public static void encodeModel(FacesContext context, JsonLDModel model) throws IOException {
        if (model != null) {
            ResponseWriter writer = context.getResponseWriter();

            try (FastStringWriter fsw = new FastStringWriter()) {
                fsw.write("{");
                writeOption(fsw, "@context", model.getContext(), false);
                writeOption(fsw, "@type", model.getType(), true);
                encodeItems(fsw, model.getItemListType(), model.getItems(), true);
                fsw.write("}");

                writer.write(fsw.toString());
            }
        }
    }
Create a script of type `ld+json` for Advanced SEO using JSON for Linking Data.
Data is messy and disconnected. JSON-LD organizes and connects it, creating a better Web.

@see <a href="https://json-ld.org/">JSON for Linking Data</a>
@since 12.0.0
primefaces/src/main/java/org/primefaces/seo/JsonLD.java