Note that there are some explanatory texts on larger screens.

plurals
  1. POJson Passing in iphone
    text
    copied!<p>i pass Json String from my WebService to My code Using NSDictionary </p> <pre><code>-(void)getData :(NSData*)respo{ NSError *error; NSMutableDictionary *jons =[NSJSONSerialization JSONObjectWithData:respo options:kNilOptions error:&amp;error]; NSMutableArray *rnameary = [jons objectForKey:@"posts"]; NSMutableArray *tempary =[[NSMutableArray alloc]init]; for (int i=0;i &lt; [rnameary count];i++) { CfResultFatch *rs = [[CfResultFatch alloc] initWithName:[[rnameary objectAtIndex:i]objectForKey:@"BrandName"] cipd:[[rnameary objectAtIndex:i] objectForKey:@"Dose"]]; [tempary addObject:rs]; } result = [[NSMutableArray alloc] initWithArray:tempary]; [temptab reloadData]; } </code></pre> <p>using this i get Data from WebServies, Data like</p> <pre><code>{ ActiveCrNo = ""; BPL = 0; BloodGroupIDF = 1; CRNumber = 0000187; CashlessDetail = fgfghgfh; CastIDF = 19; ClassIDF = 7; CloseCrNo = 0; CompanyNo = ""; DateOfBirth = { date = "1987-08-20 00:00:00"; timezone = "Europe/Berlin"; "timezone_type" = 3; }; Disability = 0; EntryDate = { date = "2011-08-20 16:30:00"; timezone = "Europe/Berlin"; "timezone_type" = 3; }; ExpiredDate = "&lt;null&gt;"; ExtraField1 = 0; ExtraField2 = "&lt;null&gt;"; FName = "Mrs.Shatayu"; Gender = 0; HospitalIDF = 4; IncomeGroupIDF = "&lt;null&gt;"; IsExpired = 0; IsNewPatient = 0; LName = Sharma; MName = Maheshbhai; MaritalStatus = 0; PAN = ""; PatientIDP = 202; QualificationIDF = "&lt;null&gt;"; ReligionIDF = "&lt;null&gt;"; Remarks = ""; SkillSetIDF = "&lt;null&gt;"; UIDNumber = ""; }, </code></pre> <p>And so on around 500 block like one is here. i easily getField Like FNAME, LNAME, in sort outer field i Access easily but problem to get "DateOfBirth" field i was try all the things but nothing work if some one know it then give me suggestion </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload