Help with Formatting JSON Data into a Table

I have tried also this inline approach, but I don’t know what I’m missing in the UQL

parse-json
jsonata "$.metrics.{
  'name': name,
  'unit': unit,
  'value': value,
  'timestamp': %.timestamp,
  'git_repo': %.attributes.git_repo,
  'branch': %.attributes.branch,
  'git_commit': %.attributes.git_commit
}"