I am working with JSON parsing for the first time on Iphone. I need to parse the following json string:
{
EmpMaster :
[
{"empId" : 1,"firstName" : "Yogesh","lastName":"Chaudhari","isSupervisor" : "1","supervisorId":"1"},
{"empId" : 2,"firstName" : "Sahil","lastName":"Khurana","isSupervisor" : "1","supervisorId":"1"},
{"empId" : 3,"firstName" : "Anutag","lastName":"Chaudhari","isSupervisor" : "1","supervisorId":"1"},
{"empId" : 4,"firstName" : "Sameer","lastName":"Vaidya","isSupervisor" : "1","supervisorId":"1"}
]
}
Please provide me with some sample code or link with the help of which i can parse the json string and separate the empId, firstName, lastName, isSupervisor and supervisorId.
You need to add JSON Framework . It will simply parse your JSON String and return you NSDictionary with all the keys.
MODIFIED
Download Zip file from this link
Hope this help.