AFNetworking/AFNetworking — pull request #595 by kgn (2012-10-24 06:48:05+00:00)
Title: Changing parameter to id to allow NSArray with AFJSONParameterEncoding

I ran into an issue where the API I was working with wanted the body of the post to be a JSON array. It seemed the only way to achieve this was to change `parameter` to `id` to accept `NSArray`. After this change I was able to post to the API with no issue, however I realize that this change might cause problems for other encodings besides `AFJSONParameterEncoding`. Is there a better way this could be achieved?

Also using `AFJSONParameterEncoding` seems to make the parameters a little overloaded, how could I add JSON to the post body and add URL parameters too? The only way I found was to add the URL parameter string to the url path, but I am sure I could be overlooking something. Is there a better way?