-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Json.Serialize doesn't support Buffer type #1697
Comments
I will fix it |
If you serialize a |
I think that it should be serializable as base64 string, and don't be able to deserialize again. What do you think? |
If you're to serialize an So we either need to keep type information when serializing or live with the fact that it's lossy and there is no 1:1 correspondence between serialized and deserialized |
Sorry, that one probably is not true since #1353, we have both |
I think |
And I would agree with that which leaves us with the question of whether we want to have I think we can keep it, maybe it'll still be useful in some scenarios even with these limitations, but of course it should be carefully documented to set the expectations of its user (and binary serialization/deserialization should be recommended for 1:1 transfers of |
Seems like this one was fixed in #1715. |
Describe the bug
It looks like Json.Serialize syscall added with #785 and refined by #1353 doesn't support Buffer item type introduced with neo-project/neo-vm#272. It probably should've been added with #1374, but either it was missed or not added intentionally.
Expected behavior
I think Buffer should be OK to serialize, it's almost like a ByteString and it's going to be used a lot, so chances are someone will try to serialize it.
The text was updated successfully, but these errors were encountered: