I am trying my first steps with python and json and hope you can halp me with this. I am getting a json in a variable which looks like this:
host10=[{'hostid': '10084', 'proxy_hostid': '0'},
{'hostid': '10085', 'proxy_hostid': '1'}]
when I run
hosts = json.loads(host10)
print(hosts)
I am getting the error:
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not list
what do I wrong?