func getUsers() {
let URLSTring = "https://jsonplaceholder.typicode.com/posts"
AF.request(URLSTring).responseJSON { response in
if let JSON = response.data {
let str = String(decoding: JSON, as: UTF8.self)
//print(str)
let result = Mapper<ArrayResponse<ResponseModel>>().map(JSONString: str)
//self.userlist = Mapper<ResponseModel>().mapArray(JSONString: String(str))
let responseModel = Mapper<ResponseModel>().mapArray(JSONString: "\(String(describing: response.data))")
print(responseModel)
//let JSONString = Mapper().toJSONString(responseModel, prettyPrint: true)
// Convert JSON String to Model
//let responseModel = Mapper<ResponseModel>().map(JSONString: str)
// Create JSON String from Model
//let JSONString = Mapper<ResponseModel>().map(JSONString: str)
//let responseModel = Mapper<ResponseModel>().mapArray(JSONString: str)
}
//let users = Mapper<ResponseModel>().mapArray(JSONObject: data)
}
func getUsers() { let URLSTring = "https://jsonplaceholder.typicode.com/posts" AF.request(URLSTring).responseJSON { response in if let JSON = response.data { let str = String(decoding: JSON, as: UTF8.self) //print(str)
}