How to JSON encode Entities?

前端 未结 4 1140
我寻月下人不归
我寻月下人不归 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:51

    I use gson for GAE/J. You can give it an object (or in your case, extract stuff from a result-set) and get a JSON string.

提交回复
热议问题