I had this problem trying to serialize a (SQLite) date field with
simplejson  through "js.dumps(mydata)" :

File "C:\Python25\web2py\gluon\contrib\simplejson\encoder.py", line
332, in default
    raise TypeError("%r is not JSON serializable" % (o,))
TypeError: datetime.date(2009, 1, 14) is not JSON serializable

It seems something similar happened in Django:

http://code.djangoproject.com/ticket/2460

Is there any workaround?

carlo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to