Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3750 from skyline75489/master
Browse files Browse the repository at this point in the history
Clarify documentation for supported encodings in AFJSONResponseSerializer
  • Loading branch information
SlaunchaMan committed Nov 24, 2017
2 parents 9d5a894 + 8ad7050 commit 4de1156
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AFNetworking/AFURLResponseSerialization.h
Expand Up @@ -108,6 +108,8 @@ NS_ASSUME_NONNULL_BEGIN
- `application/json` - `application/json`
- `text/json` - `text/json`
- `text/javascript` - `text/javascript`
In RFC 7159 - Section 8.1, it states that JSON text is required to be encoded in UTF-8, UTF-16, or UTF-32, and the default encoding is UTF-8. NSJSONSerialization provides support for all the encodings listed in the specification, and recommends UTF-8 for efficiency. Using an unsupported encoding will result in serialization error. See the `NSJSONSerialization` documentation for more details.
*/ */
@interface AFJSONResponseSerializer : AFHTTPResponseSerializer @interface AFJSONResponseSerializer : AFHTTPResponseSerializer


Expand Down

0 comments on commit 4de1156

Please sign in to comment.