Getting data from JSON (object with dots)

Hello community,
i have an json file like this:


and i want to get the data like this

<link rel="stylesheet" href="/css/{{ }}" />

But that doesnt work. Any help here?

Thank you very much.

Hi Daniel. This appears to be because of the dot in ‘style.css’ - it’s resulting in a lookup within ‘style’ for a ‘css’ object, if you see what I mean.

I changed it to:



<link rel="stylesheet" href="/css/{{ }}" />

And it worked fine. Hope that helps!

Hi and thanks for your help.
i find out that this solution worked:

<link rel="stylesheet" href="/css/{{ index .Site.Data.hash "style.css" }}" />