2024-10-01 22:30:57 发布
网友
如何将stripemodel对象转换为JSON以在客户端接收完整的层次数据?在
stripeCustomer = stripe.Customer.retrieve(<stripe customer id>) sendResponseToClient(stripeCustomer)
我在客户端只接收到一级数据作为json,来自stripejson对象的第二级数据没有格式化。在
JSON数据示例:(客户端未接收第二级数据,)
您可以使用_dict()api,该api将条带模型对象转换为字典格式,然后最终转换为JSON字符串。在
您可以使用_dict()api,该api将条带模型对象转换为字典格式,然后最终转换为JSON字符串。在
相关问题 更多 >
编程相关推荐