I have a query string: a=1&b=2&c[1]=3&c[2]=4 etc…
I want a NSDictionary where a => 1, b => 2, c => [3,4]. Notice that that the value for c is an array. It should also be able to handle something like c[1][2]=5 to make an array of arrays c => [[5]].
Of course I can do it myself by splitting on the & and =, but what about other cases such as arrays and arrays of arrays. I want a structured NSDictionary from a POST request queryString and do not want to rewrite the wheel if this already exists.
Are there any class/method, through Apple or 3rd party, that will parse a query string into a structured NSDictionary?