Jul-31-2022, 09:46 AM
Hi @Pedroski55
Thank you for your reply.
JSON I specified as the format when I set up the CLI so it pushes the data out as a string.
CLI setup advisory here says:
"json – The output is formatted as a JSON string"
In the boto3 manual it points to me needing to use this to isolate x1 from my previous JSON string as a printed output
Thanks again
Thank you for your reply.
JSON I specified as the format when I set up the CLI so it pushes the data out as a string.
CLI setup advisory here says:
"json – The output is formatted as a JSON string"
In the boto3 manual it points to me needing to use this to isolate x1 from my previous JSON string as a printed output
['device_data'][0]['x1']Given that it will be string and your advice I used LOAD without the S:
data = json.load(response)Then tried to print it using that boto3 guidance
print(data ['device_data'][0]['x1'])But it returns an error saying: AttributeError: 'dict' object has no attribute 'read'
Thanks again