Jan-18-2023, 02:42 AM
Hello, thank you for your answer.
If I put the following code, I can see the data I need in the terminal, but I don't know how to pass it with the treeview.insert() to my treeview table.
![[Image: Captura-de-pantalla-2023-01-17-234606.png]](https://i.ibb.co/GtY5fHh/Captura-de-pantalla-2023-01-17-234606.png)
Now, if I put it the way you showed me, it tells me the following.
If I put the following code, I can see the data I need in the terminal, but I don't know how to pass it with the treeview.insert() to my treeview table.
import json with open('personal.json') as fp: data = json.load(fp) for element in data['Clientes']: print(element)
![[Image: Captura-de-pantalla-2023-01-17-234606.png]](https://i.ibb.co/GtY5fHh/Captura-de-pantalla-2023-01-17-234606.png)
Now, if I put it the way you showed me, it tells me the following.
Error:AttributeError: 'str' object has no attribute 'items'