我想使用Python将JSON数据转换成Python对象。我从Facebook API接收了JSON数据对象,我想将其存储在数据库中。我当前在Django(Python)中使用的视图(request.POST包含JSON):response = request.POSTuser = FbApiUser(user_id = response['id'])user.name = response['name']user.username = response['username']user.save()这可以正常工作,但是如何处理复杂的JSON数据对象?如果能以某种方式将这个JSON对象转换为Python对象以方便使用,会不会更好呢?
添加回答
举报
0/150
提交
取消