title: Parsing nested JSON with Alamofire 4
body: <p>So I have been trying all day to parse JSON from my WordPress REST API using Alomofire 4, I have tried everything I could find that is/was related to my issue yet I still can't manage to fix my issue.</p>
  
  <p>The goal is just to do a request from the API and print it out, from there I can manage but since the JSON seems to be having nested arrays/dictionaries I have a hard time figuring out what to use.</p>
  
  <p>My Code:</p>
  
  <pre><code>Alamofire.request(_newsURL).responseJSON { response in
          print(response.result)
  
          if let json = response.result.value as? [Any] {
  
              print("JSON: \(json)")
          }
  
          if let dict = response.result.value as? Dictionary&lt;String, AnyObject&gt;{
  
              print(response.result.value)
  
              if let slug = dict["slug"] as? String {
  
                  self._newsSlug = slug
              }
  
              print("Hello News")
              print(self._newsURL)
              print(self._newsSlug)
          } else {
              print("Found Nothing")
          }
      }
  </code></pre>
  
  <p>The API: <a href="http://www.wsvh.nl/wp-json/wp/v2/posts" rel="nofollow noreferrer">http://www.wsvh.nl/wp-json/wp/v2/posts</a></p>
  
  <p>My goal is to simply call and print out stuff such as the title (which is btw also nested even more?). I was trying to get it work with just the slug since that I not as nested as the rendered title, so I figured I should begin with the most simple part but I can't even manage to get that to work.</p>
  
  <p>Thanks in advance.</p>