我有这个结构化 df (json),其中包含另一个 json,我想将它们组合起来以访问所有值:
{
"index": "exp-000005",
"type": "_doc",
"score": 9.502488,
"source": {
"verb": "REPLIED",
"timestamp": "2022-01-20T08:14:00+00:00",
"in_context": {
"screen_width": "3440",
"screen_height": "1440",
"build_version": "7235",
"question": "Hallo",
"request_time": "403",
"status": "success"
}
}
}
我想要的结果如下:
{
"index": "exp-000005",
"type": "_doc",
"score": 9.502488,
"verb": "REPLIED",
"timestamp": "2022-01-20T08:14:00+00:00",
"screen_width": "3440",
"screen_height": "1440",
"build_version": "7235",
"question": "Hallo",
"request_time": "403",
"status": "success"
}
如何将这种结构化 json 合并为一个非结构化 json?在 RI 中使用tbl_json。也许 python 也有类似的东西?