[sqlalchemy] Which is the best way for saving or updating json data?

2013-04-19 Thread garcheck
I have some requirements like this. One table model is: class Demo(Base): jsondata = Column(Text) This column jsondata is used for saving json data. And this Model would be used anywhere by many developers. I want to load it to a Python object when I query and dump it to string when I

Re: [sqlalchemy] Which is the best way for saving or updating json data?

2013-04-19 Thread Richard Gerd Kuesters
http://www.sqlalchemy.org/trac/wiki/UsageRecipes/JSONColumn :) On 04/19/2013 04:50 AM, garcheck wrote: I have some requirements like this. One table model is: class Demo(Base): jsondata = Column(Text) This column jsondata is used for saving json data. And this Model would be used