public static void encodeItems(FastStringWriter writer, String optionName, List<JsonLDItem> items, boolean hasComma) throws IOException {
        if (items == null) {
            return;
        }

        if (hasComma) {
            writer.write(",");
        }

        writer.write("\"" + optionName + "\":");
        writer.write("[");
        for (int i = 0; i < items.size(); i++) {
            JsonLDItem item = items.get(i);

            if (i != 0) {
                writer.write(",");
            }

            encodeItem(writer, item);
        }
        writer.write("]");
    }
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