Access JSON-LD - Javascript JSon

Javascript examples for JSon:JSon String

Description

Access JSON-LD

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <script type="application/ld+json">
      {/*from   w ww  .  j av  a  2 s .co m*/
        "@context": "http://schema.org",
        "@type": "Event",
        "name": "A random event",
        "startDate": "2013-09-14T21:30",
        "endDate": "2013-09-14T21:30"
      }
    
      </script> 
   </head> 
   <body> 
      <p>
         The end date is: 
         <strong id="result"></strong>
      </p>  
   </body>
</html>

Related Tutorials