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
Can not serialize Map<String, T> #46
Comments
#46, Introduce default converter for Map<K, V>.
Thank you for vanishing it out, please try new version 1.5.4. |
I’ll test it as soon as possible. I’m sure you are right. It’s inevitable to tackle every use cases without a bug. Thanks for the speed 🚀 |
Works like charm! Thnks again |
Hi again @k-paxian. I'm sorry to bother you again. But even the fix was working perfectly once I started using mobx-adapter it started bugging again. If the mobx adapter is not set ( So debugged the lib for a couple of minutes and (not sure if this is the problem) but I discovered that in this line:
The mobx adapter appears here (as If I can help with more info let me know. Thanks! |
Could you please provide an code snippet which is not working for you? It should have ObservableMap in it, I guess. |
Sure but the problem is when serializing a map that is not in mobx. But if I add the adapter to use it with the mobx store the original map which is not in the store breaks with the same error as the one in the beginning of this issue. |
This works
This does not
|
I discover why it happens, maybe you too already as you wrote de lib 😝
Does not find the new |
This solved for me
Don't know if checking if having or not a |
Thanks for investigation! With the updated versions it should work now. |
Cool, thanks! |
By the way, tried it and works great. Thanks again |
Hi is possible to serialize a map of a type?
For example:
I have been trying this in several ways and I'm not able to get it, but yes I was able to do it with the library
json_serializable
. I thought this one could do the same stuff with less boilerplate.Thanks!
Edit:
I get this error
It seems your class '_InternalLinkedHashMap<String, Person>' has not been annotated with @jsonSerializable
The text was updated successfully, but these errors were encountered: