Replies: 1 comment 2 replies
-
Thanks. :)
Firstly, you don't need to use
Because of how D-Bus format works, our (de)serializer and Value ser/de impls have to do some special tricks, which makes zvariant a bit incompatible with other format ser/de (especially self-explanatory text formats like JSON). There was an issue filed for this (#176, it was move from gitlab so don't get confused by my name on every comment :)) a while back but we couldn't find a good solution for this. My advise is to not mix zvariant ser/de with other formats if your data contains variants. Best translate between them. |
Beta Was this translation helpful? Give feedback.
-
Hi all!
First of all, thanks a lot for such a fantastic project!
I have been playing around with serializing/deserializing
zvariant
values and, somehow, I expected the following test to pass:I am converting a data structure (
Data
) into a JSON string and back. However, it fails when I try to get the original object again (the signature "(ssv)" looks good to me).Perhaps it is a stupid thing to do and it is not supported. But I had to ask. Please, any hint?
Regards,
Imo
Beta Was this translation helpful? Give feedback.
All reactions