How to JSON encode Entities?

前端 未结 4 1118
我寻月下人不归
我寻月下人不归 2021-01-16 18:26

I\'m getting started with Google App Engine. I want to make AJAX chat like Twitter.

class ChatMessage(db.Model):
  message = db.StringProperty()
  created =          


        
4条回答
  •  天涯浪人
    2021-01-16 18:52

    Check the error log for the app engine. It will tell you what error it is experiencing. Probably you are trying to encode a Python type that json it not familiar with. JSON will only do simple stuff like lists and dictionaries. You can't use it for complex, custom types.

提交回复
热议问题