{"action":"opened","issue":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2920","labels_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2920/labels{/name}","comments_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2920/comments","events_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2920/events","html_url":"https://github.com/AFNetworking/AFNetworking/issues/2920","id":103031494,"number":2920,"title":"Serialization of NSDictionary objects for GET,HEAD,DELETE requests","user":{"login":"doncorsean","id":495237,"avatar_url":"https://avatars.githubusercontent.com/u/495237?v=3","gravatar_id":"","url":"https://api.github.com/users/doncorsean","html_url":"https://github.com/doncorsean","followers_url":"https://api.github.com/users/doncorsean/followers","following_url":"https://api.github.com/users/doncorsean/following{/other_user}","gists_url":"https://api.github.com/users/doncorsean/gists{/gist_id}","starred_url":"https://api.github.com/users/doncorsean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doncorsean/subscriptions","organizations_url":"https://api.github.com/users/doncorsean/orgs","repos_url":"https://api.github.com/users/doncorsean/repos","events_url":"https://api.github.com/users/doncorsean/events{/privacy}","received_events_url":"https://api.github.com/users/doncorsean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-25T14:14:03Z","updated_at":"2015-08-25T14:14:03Z","closed_at":null,"body":"Currently AFNetworking 1.3.4 uses square brackets to serialize nested objects.\r\n\r\nGiven the following:\r\n\"foo\" : {\r\n    \"bar\" : \"baz\r\n}\r\n\r\nAFNetworking serializes to:\r\nfoo[bar] = \"baz\"\r\n\r\nMy API expects:\r\nfoo.bar = \"baz\"\r\n\r\nThis is easily corrected by modifying line # 160 in https://github.com/AFNetworking/AFNetworking/blob/1.3.4/AFNetworking/AFHTTPClient.m\r\n\r\nIt would be great if we could set a formatting block in AFHTTPClient to customize how complex objects serialize for these type of requests. This optional setting would allow anyone currently using 1.3.4 to customize how these params are formatted and if not set would have no impact on existing users. Any chance of getting this fixed? I'm using AFNetworking in a static library of which some consumers use RestKit. Until RestKit removes AFNetworking dependency or upgrades to AF2.x I'm stuck with 1.3.4."}}