I have a python script which sends a JSON file to a device, takes the device's answers and compare them to another JSON file. In some case, I'd like to admit 2 results for the same ID.
This is the input.json :
[
{
"method": "AT",
"body": "HB_UID",
"id": 1
},]
This is the expected.json that I have :
[
{
"id": 1,
"result": "3"
},
This is the expected.json that I want but it's not correct :
[
{
"id": 1,
"result": "3"
//or
"result": "4"
},
However, if an answer is false, it isn't skipped and the script stop.
May someone help me for that ?
Aucun commentaire:
Enregistrer un commentaire