Wildcard JSON?

If there is just one root key you should be able to do this:

{{$json[Object.keys($json)[0]]["id"]}}