We often come across a condition where JSON string is to be sent to server. for example parameters like username & password is to be posted as JSON String for validating credentials from server.
Best practice is to create an extension of NSDictionary and add a function with a name of your choice(func jsonString here for now) that will return JSONString as String.
0 Comment(s)