Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it's still working ????? i am working on this but always show some error i don't no why #321

Open
exploitcrew opened this issue Mar 8, 2022 · 0 comments

Comments

@exploitcrew
Copy link

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)
    
    
    
}

}

@exploitcrew exploitcrew changed the title it's still working ????? i am working o this but always show some error i don't no why it's still working ????? i am working on this but always show some error i don't no why Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant