I have some json-ld files (residing in the data folder), which i would like to use as a data resource, but i can’t access keys starting with ‘@’.
Here an example: The File data/myBusiness.json
{
"@context": "http://schema.org/",
"@type" : "Organization",
"name" : "nameOfMyBusiness"
}
I can access the key “name” in templates, so that “nameOfMyBusiness” is displayed in the Browser
{{ .Site.Data.myBusiness.name }}
When I try the same with keys starting with ‘@’ I get the following error message:
{{ .Site.Data.myBusiness.@context }}
parse failed: bad character U+0040 '@'
So, my Question is: How can I access keys with an ‘@’ in hugo templates?