{ "tenant": 1, "action": "AuditPass", "ordId": 1, "bizType": "sms", "partnerId": 123, "ordRemark": "备注信息", "curAuditor": "", "auditTemplateCode": "", "currentNum": 0, "allNum": 1, "auditDetail": "", "orderPostParamDTO": { "param": { "qualificationGroupId":"12345", "organizationCode":"2222", "qualificationGroupName":"22222" }, "auditRemark": "", "exceptionOrder": }, "orderCreateTime": 1230 } 将改消息解析成对象
时间: 2023-07-03 08:27:31 浏览: 77
activerecord-multi-tenant:RailsActiveRecord支持分布式多租户数据库,例如Postgres + Citus
这是一段 JSON 格式的数据,可以通过各种编程语言中的 JSON 解析器将其解析成对象。以下是 Python 中的示例代码:
```python
import json
data = '{ "tenant": 1, "action": "AuditPass", "ordId": 1, "bizType": "sms", "partnerId": 123, "ordRemark": "备注信息", "curAuditor": "", "auditTemplateCode": "", "currentNum": 0, "allNum": 1, "auditDetail": "", "orderPostParamDTO": { "param": { "qualificationGroupId":"12345", "organizationCode":"2222", "qualificationGroupName":"22222" }, "auditRemark": "", "exceptionOrder": }, "orderCreateTime": 1230 }'
obj = json.loads(data)
print(obj)
```
运行以上代码可以将该 JSON 数据解析成 Python 对象,并将其打印出来。你也可以使用其他编程语言的 JSON 解析器来解析该数据。
阅读全文