-
Notifications
You must be signed in to change notification settings - Fork 46
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 field is string #44
Comments
Yes. That is correct. It might be considered premature to json load a json field that you might or might not want into a dict. Also, you might want to use ujson or something faster than standard json module. That being said, I am not opposed to json being automatically loaded, maybe with a flag in the pool object? Your welcome to write a pull request that will implement this feature. |
I believe loading JSON to be a feature of the ORM. Looking at the readme of this project it seems to only support SA core and not the ORM. The docs for SA mention you can specify It is possible to do it automatically in here but I am not sure if that would cause compatibility issues later when integrating with the ORM. |
This issue is analogous to #45 . |
Hi!
but I can't seem to get that to work like that with the default dialect settings. Is there something extra that needs to be done to get JSON auto-loaded and auto-dumped? |
hmm, this might not actually work... I will need to circle back on that. |
any news on this? |
This is a bug, that requires a lot more work to get working. For now you'll just have to json decode json feilds I guess. Pr's welcome ;) I was premature in saying json decoding will work for you in the release notes. I misunderstood some things. |
Having field defined this way
Column('abc', JSON)
, I have to usejson.loads
to get dict:row.abc
is stringThe text was updated successfully, but these errors were encountered: