Browse files

Merge pull request #3750 from skyline75489/master

Clarify documentation for supported encodings in AFJSONResponseSerializer
  • Loading branch information...
SlaunchaMan committed Nov 24, 2017
2 parents 9d5a894 + 8ad7050 commit 4de115625ab8191dfb05dc28cca9819a1e827a75
Showing with 2 additions and 0 deletions.
  1. +2 −0 AFNetworking/AFURLResponseSerialization.h
@@ -108,6 +108,8 @@ NS_ASSUME_NONNULL_BEGIN
- `application/json`
- `text/json`
- `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

0 comments on commit 4de1156

Please sign in to comment.