I want to change key value getting bt json from Server in iOS -


[server]

array_push($msg,array("finished"=>@"1", . . .)   array_push($msgs,$msg);   $response = array("msgs"=>$msgs);  echo json_encode($response); 

[client ]

nsdictionary *responsedict = [nsjsonserialization jsonobjectwithdata:data options:0 error:&jsonparseerror];  nsmutablearray * umsgsinfoarray = [responsedict mutablearrayvalueforkey:@"msgs"];  } 

enter image description here


i want change client's "finished" key value(="1") in client. should do?


i little bit confuse , if want how change "finished" key values please use below -

[[[umsgsinfoarray objectatindex:0] objectatindex:1] setobject:@"1" forkey:@"finished"]]; 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -