You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we use json.Marshal, we will get an empty string(Not an empty string, but an empty JSON like "{}").
If we use Encode in encoding/gob, we will get an error:
Error encoding: gob: type dbus.Variant has no exported fields
Do you want to implement the json interface? Or let others who use the type Variant to implement it in their own projects?
The text was updated successfully, but these errors were encountered:
As described by @kolyshkin in opencontainers/runc#3361 (comment), we can't marshal a Variant variable as a json string.
If we use
json.Marshal
, we will get an empty string(Not an empty string, but an empty JSON like "{}").If we use
Encode
inencoding/gob
, we will get an error:Do you want to implement the
json interface
? Or let others who use the typeVariant
to implement it in their own projects?The text was updated successfully, but these errors were encountered: