I've read close to a 100 questions on SO but I still haven't been able to figure out how to create a simple JSON object from a set of simple strings. Every attempt ends with unresolved reference.
Eg:
Key1 : value1
Key2 : value2
Key3 : value3
And I want to create a JSON object from the above using Objective C. Thank you.
Edit: This is how I've created the dictionary.
NSDictionary *jsonDict = [NSDictionary dictionaryWithObjectsAndKeys:
@"key1", @"val1",
@"key2", @"val2",
@"key3", @"val3",
nil];