python json

zyip發表於2014-12-30

 

import json

 

 

user={'name':'yao','gender':'male','group':{'L':'A'}} //python object

userStr=json.dumps(user)

user2=json.load(userStr)

print user2['name']

print user2['group']['L']

 

相關文章