MainEntityOfPage

I have an Article inside a Page and the json-ld for this page is:

{
    "@type": "Article",
    "mainEntityOfpage": "www.urlofthepage.com",
    ...
}

Basically in this page there is just one element.

Or should i declare also the Page? like this?
[
    {
        "@type": "WebPage"
        "@id": "idPage"
        ...
    }
    {
        "@type: "Article"
        "mainEntityOfPage": "idPage"
        ...
    }
]

Greetings

Received on Tuesday, 10 September 2019 09:20:24 UTC