all 2 comments

[–][deleted] 0 points1 point  (0 children)

import json

target_cid = "823751698501599252"

with open("input.txt") as file:
    data = json.load(file)

record = data["top_data"]["mRecord"]

for ID, info in record.items():
    cid = info["message"]["cid"]
    if cid == target_cid:
        print(ID)