FWJSONRequestSerializer
@interface FWJSONRequestSerializer : FWHTTPRequestSerializer
FWJSONRequestSerializer is a subclass of FWHTTPRequestSerializer that encodes parameters as JSON using NSJSONSerialization, setting the Content-Type of the encoded request to application/json.
-
Options for writing the request JSON data from Foundation objects. For possible values, see the
NSJSONSerializationdocumentation section “NSJSONWritingOptions”.0by default.Declaration
Objective-C
@property (nonatomic) NSJSONWritingOptions writingOptions; -
Creates and returns a JSON serializer with specified reading and writing options.
Declaration
Objective-C
+ (nonnull instancetype)serializerWithWritingOptions: (NSJSONWritingOptions)writingOptions;Parameters
writingOptionsThe specified JSON writing options.
FWJSONRequestSerializer Class Reference