Example Restaurant-ViewAction-EntryPoint-SoftwareApplication-189

JSON-LD (source lint)

<script type="application/ld+json">

{
  "@context": "http://schema.org",
  "@type": "Restaurant",
  "name": "Tartine Bakery",
  "potentialAction": {
    "@type": "ViewAction",
    "target": [
      "http://www.urbanspoon.com/r/6/92204",
      {
        "@type": "EntryPoint",
        "urlTemplate": "http://api.urbanspoon.com/r/6/92204",
        "contentType": "application/json+ld"
      },
      "android-app://com.urbanspoon/http/www.urbanspoon.com/r/6/92204",
      {
        "@type": "EntryPoint",
        "urlTemplate": "urbanspoon://r/6/92204",
        "actionApplication": {
          "@type": "SoftwareApplication",
          "@id": "284708449",
          "name": "Urbanspoon iPhone & iPad App",
          "operatingSystem": "iOS"
        }
      },
      {
        "@type": "EntryPoint",
        "urlTemplate": "urbanspoon://r/6/92204",
        "actionApplication": {
          "@type": "SoftwareApplication",
          "@id": "5b23b738-bb64-4829-9296-5bcb59bb0d2d",
          "name": "Windows Phone App",
          "operatingSystem": "Windows Phone 8"
        }
      }
    ]
  }
}
</script>

Example ViewAction-65

JSON-LD (source lint)

<!-- John viewed Les demoiselles d'avignon. -->
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "ViewAction",
  "agent": {
    "@type": "Person",
    "name": "John"
  },
  "object": {
    "@type": "Painting",
    "name": "Les demoiselles d'avignon"
  }
}
</script>

Example ViewAction-66

JSON-LD (source lint)

<!-- John viewed a photo of Steve. -->
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "ViewAction",
  "agent": {
    "@type": "Person",
    "name": "John"
  },
  "object": {
    "@type": "ImageObject",
    "name": "Steve"
  }
}
</script>

Example ViewAction-67

JSON-LD (source lint)

<!-- John viewed The Thinker. -->
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "ViewAction",
  "agent": {
    "@type": "Person",
    "name": "John"
  },
  "object": {
    "@type": "Sculpture",
    "name": "The Thinker"
  }
}
</script>