Write structured data
mttr_schema_createMakes JSON-LD for one page from the fields given, as the free schema creator does, and fetches nothing. Types: LocalBusiness, Organization, Product, Article, BreadcrumbList, Service, Event, WebSite, each with the fields Google's own structured data pages mark required or recommended (Service has no Google rich result; FAQPage and HowTo are not offered, since Google no longer shows them). Empty fields are left out, never made up. It returns the JSON-LD as data and inside its script tag, ready to paste, the required fields left empty, what is not right (a price of zero, a currency not in ISO 4217, hours given in part), the recommended fields left out, and every field the type takes with its key. Call it once with only "type" to see the fields. Give only values the page shows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | A more exact type, for LocalBusiness (such as Plumber, RoofingContractor, Restaurant) or Article (BlogPosting, NewsArticle). | |
| type | Yes | The schema type to make. | |
| fields | No | The values, by field key, as text: such as { "name": "Acme Plumbing", "city": "Phoenix", "telephone": "+1-602-555-0142" }. Lists, such as images, are one value a line. |