I need to open a txt file with python but I don't know how because the data in the txt is not familiar for me. Next the firsts lines. How can I read theses and then use it?
What is this?
[
{
"complemento": {
"valorTotal": 24.9
},
"dets": [
{
"nItem": "1",
"prod": {
"indTot": "1",
"qCom": 1.0,
"uCom": "UN",
"vProd": 3.5,
"vUnCom": 3.5,
"xProd": "AGUA"
}
},
{
"nItem": "2",
"prod": {
"indTot": "1",
"qCom": 0.312,
"uCom": "KG",
"vProd": 21.4,
"vUnCom": 68.6,
"xProd": "BUFFET"
}
}
],