title: How to access the specific array data after parsing the json file?
body: <p>Here is the JSON:</p>
  
  <pre><code>[
    {
      "District_en": "Kowloon City",
      "Name_en": "Carpenter Road Park",
      "GIHS": "9G5i7NFpXL",
      "Court_no_en": "4",
      "Court_no_cn": "4"
    },
    {
      "District_en": "Kowl",
      "Name_en": "Road Park",
      "GIHS": "9G5i7NFaXL",
      "Court_no_en": "5",
      "Court_no_cn": "6"
    }
  ]
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>func loadjson() {
          if let url = Bundle.main.url(forResource: "court", withExtension: "json"){
              do{
                  let data = try Data(contentsOf: url)
                  let decoder = JSONDecoder()
                  let jsondata = try decoder.decode([Court].self, from: data)
                  print(jsondata)
                  } catch {
                  print(error)
              }
          }
  }
  </code></pre>
  
  <p>I have a localized JSON file which I know how to parse the file, but after parsing the file, I don't know how to access the specific array data inside.</p>