I am working on a project which outputs a JSON file with certain characteristics, example below. How can I extract the values that are assigned to the "top", "left", "width" and "height" and assign these values to separate variables within Python3.7.
Detection result:
detection_02
JSON:
 [
  {
    "faceId": "4c1cb007-ed71-42d4-b2af-7abc3e82210e",
    "faceRectangle": {
      "top": 76,
      "left": 446,
      "width": 226,
      "height": 284
    },
    "faceAttributes": null,
    "faceLandmarks": null
  }
]
 
    