Expand my Community achievements bar.

Data Element using JSON

Avatar

Level 5

How do you define/populate a data element using JSON defined on page?

eg retrieve name

  <!-- JSON-LD Markup -->

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

{

"@context": "http://schema.org",

"@type": "LocalBusiness",

"telephone": "00000000",

"address": {

"@type": "PostalAddress",

"addressRegion": "Worcestershire",

"addressCountry": "gb"

},

  "name": "foo"

 

}

  </script>

0 Replies