repository to manage all files related to the makeathon farm bot project (Software + Documentation).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

json_test.py 218B

123456789101112
  1. test_dict = {
  2. "PlantData": [ {"PlantID":1, "Test": 0}, {"PlantID": 2, "Test": 0}],
  3. "ActionID": "SUIIII"
  4. }
  5. plant_ids = []
  6. for i in test_dict["PlantData"]:
  7. plant_ids.append(i["PlantID"])
  8. print(plant_ids)