Implementing Marshaler and Unmarshaler interfaces for Macaroon and Caveat.

    err := json.Unmarshal(jsonData, &cavJSON)