Go api: looking for a way to read secret in json format

I’m using https://pkg.go.dev/github.com/hashicorp/vault/api?tab=doc

Could someone show me examples how to get raw json secret that I uploaded from json file or maybe how to directly unmarshal it into my own struct/type?

I did it by digging into Secret.Data with type assertions from interface{} but I don’t like code I got.