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"]; }
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
Post a Comment