Template error bad character U+0024 '$'

I am trying to fetch JSON data from Blogger and displaying in Hugo using getJSON function. The Blogger returns JSON data which has t in attribute names. Hugo is not liking somehow and throws error bad character U+0024 '

Below is the snippet

  {{ $dataJ := getJSON "https://joyfulwpf.blogspot.com/feeds/posts/default?orderby=published&max-results=3&alt=json" }}
  <h2>{{ $dataJ.feed.title.$t }}</h2>

There is a repo to see the issue URL is

You need to use index function:

{{ index $dataJ.feed.title "$t" }}

Thanks for the quick response. Its great community

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.