jsonObject to dict

22 views
Skip to first unread message

lovelessyuyu

unread,
Nov 28, 2012, 9:03:32 AM11/28/12
to pyweb...@googlegroups.com
CLIENT:
socket.send({'username':'a','message':'a','status':0});    //jsonObject

SEVER:
msg = request.ws_stream.receive_meassage()
print msg  #show  u'[object Object]'

how can I transfer the msg to a dictionary type? 

lovelessyuyu

unread,
Nov 29, 2012, 8:32:47 PM11/29/12
to pyweb...@googlegroups.com
Thank you, I have solved the problem

在 2012年11月28日星期三UTC+8下午10时03分32秒,lovelessyuyu写道:
Reply all
Reply to author
Forward
0 new messages