-
Notifications
You must be signed in to change notification settings - Fork 1k
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
parse integer response always nil (e.g status = 200) the result is always becomes nil .. any help ? thanks #62
Comments
Please provide some more info so we can help. Your code and the JSON string you are trying to parse would help |
Hey, here is the sample json string im trying to parse ---- swift code (using object mapper)---- ---- swift code (my object mapper classes) ---- class User: Mappable {
} class Profile : Mappable {
} |
Hi, you're models look properly formed but your JSON is not. You can test if JSON is properly formed using online tools like: http://jsonformatter.curiousconcept.com/ I've reformatted your JSON properly below.
The other issue I see is that you need to pass in a type when you are creating a Mapper object.
Hope this helps |
Hi thanks , i think i see the issue.. im using alamofire to request the json and the json response is not a valid json format .. |
parsing response integer response and the result is always "nil"
example: (status = 200)
result = nil (when I parse the result)
The text was updated successfully, but these errors were encountered: