script/lib/iri_tweet/models.py
changeset 18 bd595ad770fc
parent 12 4daf47fcf792
child 98 6e8930a1b8f7
--- a/script/lib/iri_tweet/models.py	Thu Jan 20 12:53:01 2011 +0100
+++ b/script/lib/iri_tweet/models.py	Thu Jan 20 19:28:51 2011 +0100
@@ -4,7 +4,7 @@
 from sqlalchemy.orm import relationship, backref
 import datetime
 import email.utils
-import simplejson
+import anyjson
 
 
 Base = declarative_base()
@@ -23,7 +23,7 @@
     if obj is None:
         return None
     else:
-        return simplejson.dumps(obj)
+        return anyjson.serialize(obj)
 
 class Entity(Base):
     __tablename__ = "tweet_entity"