I want to add the social media links to my html. My project is implemented using ASP.net MVC. When I add the below code it gives an error in this line: "@context" : "http://schema.org",
<script type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "Organization", "name" : "Example", "url" : "https://www.example.com", "sameAs" : [ "https://twitter.com/example", ] } </script>
I added this line of code to the <head>
tag in _Layout.cshtml
. I checked and this code's working fine on a pure html project.
{ ... }
are just creating a code block, not an object. The lines within them make no sense as it currently stands. Are you trying to create an object? If so, tryvar objName = { ... };
You can then useobjName
for whatever your code will do next.@
before context. But I do not know what edit should I do for this