I'm writing a Python script. I need to return line that contain largest 'uid' field from a text file. For example, in the below text file example:
{
"uid": 683,
"user_id": "2",
"timestamp": datetime.datetime(2020, 5, 17, 16, 39, 54),
"status": 1,
"punch": 0,
}, {
"uid": 684,
"user_id": "4",
"timestamp": datetime.datetime(2020, 5, 17, 16, 41, 20),
"status": 1,
"punch": 0,
}
Return Text File ex:
{
"uid": 684,
"user_id": "4",
"timestamp": datetime.datetime(2020, 5, 17, 16, 41, 20),
"status": 1,
"punch": 0,
}