title: How to print a specific item in an API Data Set using JSON and SwiftUI
body: <p>Currently trying to print a specific item from an API data set. In this case, I just want to run a simple print function to print the ticker symbol of apple from the financial modeling prep income statement data set. Here is a picture of a preview of the set on the website:</p>
  <p><a href="https://i.stack.imgur.com/6Xlp9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Xlp9.png" alt="Picture of the Data Set" /></a></p>
  <p>I did copy starter code from FMP's github into a swift playground, as shown below (I've blocked out my API Key for privacy reasons):</p>
  <pre><code>import PlaygroundSupport
  
  import Foundation
  
  let url = URL(string: &quot;https://financialmodelingprep.com/api/v3/income-statement/AAPL?apikey=YOUR_API_KEY&quot;)
  
  var request = URLRequest(url: url!)
  
  request.addValue(&quot;application/json&quot;, forHTTPHeaderField: &quot;Accept&quot;)
  let task = URLSession.shared.dataTask(with: url!) { data, response, error in
      guard error == nil else {
          print(error!)
          return
      }
      guard let data = data else {
          print(&quot;Data is empty&quot;)
          return
      }
  
      let json = try! JSONSerialization.jsonObject(with: data, options: [])
      print(json)
  }
  
  task.resume()
  PlaygroundPage.current.needsIndefiniteExecution = true
  </code></pre>
  <p>Obviously, the <em><strong>print(json)</strong></em> command works, but it prints out the entire data set with all items. <strong>I only want to print the &quot;symbol&quot; item (AAPL) instead. How do I do this?</strong></p>