• This repository has been archived on 16/Aug/2023
  • Stars
    star
    134
  • Rank 270,967 (Top 6 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 11 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Easy query string conversion for iOS and OS X.

CMDQueryStringSerialization

Pod Version Pod Platform Pod License

Easily convert between dictionaries and query strings in iOS and OS X. The API is similar to NSJSONSerialization.

Usage

NSString *queryString = [CMDQueryStringSerialization queryStringWithDictionary:dictionary];

CMDQueryStringSerialization supports arrays encoded in one of the following three formats:

  • key=value1&key=value2
  • key[]=value1&key[]=value2
  • key=value1,value2

CMDQueryStringWritingOptions contains options that map to each of these formats, with CMDQueryStringWritingOptionArrayRepeatKeysWithBrackets being the default if no option is passed.

License

CMDQueryStringSerialization is released under the MIT License.