title: AFNetworking and Swift - Save json response
body: <p>I want to make a GET request in swift to get some Json data.
  I tried to use AFNetworking and it works, but I don't know how to return the Json I get.</p>
  
  <p>I tried with a <code>return</code> but it's made before the GET so I get nothing...</p>
  
  <pre><code>func makeGet(place:String) -&gt; String
  {
      var str:String = ""
      let manager = AFHTTPRequestOperationManager()
      manager.requestSerializer.setValue("608c6c08443c6d933576b90966b727358d0066b4", forHTTPHeaderField: "X-Auth-Token")
      manager.GET("http://something.com/api/\(place)",
          parameters: nil,
          success: { (operation: AFHTTPRequestOperation!,responseObject: AnyObject!) in
              str = "JSON:  \(responseObject.description)"
              println(str) //print the good thing
          },
          failure: { (operation: AFHTTPRequestOperation!,error: NSError!) in
              str = "Error: \(error.localizedDescription)"
          })
      return str //return ""
  }
  </code></pre>
  
  <p>Can you help me ? </p>