AlamofireJsonToObjects | Alamofire extension which converts JSON response | JSON Processing library
kandi X-RAY | AlamofireJsonToObjects Summary
kandi X-RAY | AlamofireJsonToObjects Summary
This is now a subspec of EVReflection and the code is maintained there. .
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AlamofireJsonToObjects
AlamofireJsonToObjects Key Features
AlamofireJsonToObjects Examples and Code Snippets
Community Discussions
Trending Discussions on AlamofireJsonToObjects
QUESTION
I have run into this problem and I cant seem to find any reasonable explanation nor solution.
Just recently I have migrated application from swift 2.3 to swift 3 and then to swift 4.
Today I have noticed that an API call that is returning HTTP status code 200 is interpreted as error in my iOS application. Example of API call:
...ANSWER
Answered 2018-Apr-16 at 14:32After reinstalling all pods it has worked like a charm.
Thank you @Nitish
QUESTION
I'm using Alamofire with EVReflection, in case responseObject fails to parse the raw response string into an object, an response.error
will have some value, in case of a different error, a different value will be set.
Not sure how to compare those error values, to handle different error.
in case of JSON parsing error, print(error) will output
FAILURE: Error Domain=com.alamofirejsontoobjects.error Code=1 "Data could not be serialized. Input data was not json." UserInfo={NSLocalizedFailureReason=Data could not be serialized. Input data was not json.}
ANSWER
Answered 2017-Dec-13 at 23:44When your request fails, you will get an error of type AFError
from Alamofire. You can actually check AFError.swift file to get familiar with possible values. This file have really good documentation for every case.
Since AFError is an Error, which is of type enum, you can check like following:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AlamofireJsonToObjects
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page