Help with getJSON: unexpected end of JSON input

transform.Unmarshal needs a Resource or a string input; getJSON needs a URL. In this case you could use either, but in other use cases it is probably more obvious which one is better suited.

Me too. I was referring to .GitInfo scenarios, not .GetJSON. My problem with GetJSON is that I can’t get it to work on content outside hugo work dir. And more importantly that I can’t find an alternative that works outside hugo. I don’t insist on GetSJON but be able to read JSON and range on and traverse paths (e.g. commit.author).

as advised: Read media and JSON content outside hugo's work directory