Inherits from AFHTTPRequestSerializer : NSObject
Declared in AFURLRequestSerialization.h

Overview

AFJSONRequestSerializer is a subclass of AFHTTPRequestSerializer that encodes parameters as JSON using NSJSONSerialization, setting the Content-Type of the encoded request to application/json.

Tasks

  •   writingOptions

    Options for writing the request JSON data from Foundation objects. For possible values, see the NSJSONSerialization documentation section “NSJSONWritingOptions”. 0 by default.

    property
  • + serializerWithWritingOptions:

    Creates and returns a JSON serializer with specified reading and writing options.

Properties

writingOptions

@property (nonatomic, assign) NSJSONWritingOptions writingOptions
Discussion

Options for writing the request JSON data from Foundation objects. For possible values, see the NSJSONSerialization documentation section “NSJSONWritingOptions”. 0 by default.

Declared In

AFURLRequestSerialization.h

Class Methods

serializerWithWritingOptions:

+ (instancetype)serializerWithWritingOptions:(NSJSONWritingOptions)writingOptions
Discussion

Creates and returns a JSON serializer with specified reading and writing options.

Parameters

writingOptions

The specified JSON writing options.

Declared In

AFURLRequestSerialization.h