Skip to main content
Indentation
Source Link
<script type="application/ld+json">
{  
   "@context": "http://schema.org",
   "@graph": [  
      {  
         "@type": "Trip",
         "name": "Your ideal trip to England",
         "description": "The dozen best places and areas that should be on you list when visiting England.  Choose you own order but visit as many as you can",
         "itinerary": [  
            {  
               "@type": "City",
               "name": "Poole",
        "description":       "description":"Sail from Poole to Jersey onboard Condor Liberation in as little as 4 hours 30 minutes",
               "url": "https://en.wikipedia.org/wiki/Poole"
            },
            {  
               "@type": "Country",
               "name": "Jersey",
               "description": "Sail to Jersey and fall in love with luscious landsapes and stunning skies",
               "url": "https://en.wikipedia.org/wiki/Jersey"
            }
         ]
      }
 ,
      {  
         "@type": "Trip",
         "name": "Your ideal trip to France",
         "description": "The dozen best places and areas that should be on you list when visiting France.  Choose you own order but visit as many as you can",
         "itinerary": [  
            {  
               "@type": "City",
               "name": "Paris",
        "description":       "description":"Travel to Paris onboard Condor Liberation in as little as 4 hours 30 minutes",
               "url": "https://en.wikipedia.org/wiki/Paris"
            },
            {  
               "@type": "Country",
               "name": "France",
               "description": "Travel to Paris and fall in love with luscious landsapes and stunning skies",
               "url": "https://en.wikipedia.org/wiki/France"
            }
         ]
      }
   ]
}
</script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@graph": [
{
"@type": "Trip",
"name": "Your ideal trip to England",
"description": "The dozen best places and areas that should be on you list when visiting England.  Choose you own order but visit as many as you can",
"itinerary": [
    {
        "@type": "City",
        "name": "Poole",
        "description":  "Sail from Poole to Jersey onboard Condor Liberation in as little as 4 hours 30 minutes",
        "url": "https://en.wikipedia.org/wiki/Poole"
    },
    {
        "@type": "Country",
        "name": "Jersey",
        "description": "Sail to Jersey and fall in love with luscious landsapes and stunning skies",
        "url": "https://en.wikipedia.org/wiki/Jersey"
    }
]
}
 ,
{
"@type": "Trip",
"name": "Your ideal trip to France",
"description": "The dozen best places and areas that should be on you list when visiting France.  Choose you own order but visit as many as you can",
"itinerary": [
    {
        "@type": "City",
        "name": "Paris",
        "description":  "Travel to Paris onboard Condor Liberation in as little as 4 hours 30 minutes",
        "url": "https://en.wikipedia.org/wiki/Paris"
    },
    {
        "@type": "Country",
        "name": "France",
        "description": "Travel to Paris and fall in love with luscious landsapes and stunning skies",
        "url": "https://en.wikipedia.org/wiki/France"
    }
]
}
]
}
</script>
<script type="application/ld+json">
{  
   "@context":"http://schema.org",
   "@graph":[  
      {  
         "@type":"Trip",
         "name":"Your ideal trip to England",
         "description":"The dozen best places and areas that should be on you list when visiting England.  Choose you own order but visit as many as you can",
         "itinerary":[  
            {  
               "@type":"City",
               "name":"Poole",
               "description":"Sail from Poole to Jersey onboard Condor Liberation in as little as 4 hours 30 minutes",
               "url":"https://en.wikipedia.org/wiki/Poole"
            },
            {  
               "@type":"Country",
               "name":"Jersey",
               "description":"Sail to Jersey and fall in love with luscious landsapes and stunning skies",
               "url":"https://en.wikipedia.org/wiki/Jersey"
            }
         ]
      },
      {  
         "@type":"Trip",
         "name":"Your ideal trip to France",
         "description":"The dozen best places and areas that should be on you list when visiting France.  Choose you own order but visit as many as you can",
         "itinerary":[  
            {  
               "@type":"City",
               "name":"Paris",
               "description":"Travel to Paris onboard Condor Liberation in as little as 4 hours 30 minutes",
               "url":"https://en.wikipedia.org/wiki/Paris"
            },
            {  
               "@type":"Country",
               "name":"France",
               "description":"Travel to Paris and fall in love with luscious landsapes and stunning skies",
               "url":"https://en.wikipedia.org/wiki/France"
            }
         ]
      }
   ]
}
</script>
Source Link
Evgeniy
  • 10.2k
  • 1
  • 18
  • 49

The correct, by Google Structured Data Testing Tool successfully validated code for multiple Trip entities (an array of) would be:

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@graph": [
{
"@type": "Trip",
"name": "Your ideal trip to England",
"description": "The dozen best places and areas that should be on you list when visiting England.  Choose you own order but visit as many as you can",
"itinerary": [
    {
        "@type": "City",
        "name": "Poole",
        "description":  "Sail from Poole to Jersey onboard Condor Liberation in as little as 4 hours 30 minutes",
        "url": "https://en.wikipedia.org/wiki/Poole"
    },
    {
        "@type": "Country",
        "name": "Jersey",
        "description": "Sail to Jersey and fall in love with luscious landsapes and stunning skies",
        "url": "https://en.wikipedia.org/wiki/Jersey"
    }
]
}
,
{
"@type": "Trip",
"name": "Your ideal trip to France",
"description": "The dozen best places and areas that should be on you list when visiting France.  Choose you own order but visit as many as you can",
"itinerary": [
    {
        "@type": "City",
        "name": "Paris",
        "description":  "Travel to Paris onboard Condor Liberation in as little as 4 hours 30 minutes",
        "url": "https://en.wikipedia.org/wiki/Paris"
    },
    {
        "@type": "Country",
        "name": "France",
        "description": "Travel to Paris and fall in love with luscious landsapes and stunning skies",
        "url": "https://en.wikipedia.org/wiki/France"
    }
]
}
]
}
</script>

Note, thate itinerary is a pending property, currently not included into the regular draft.