title: using json parser how to display php webservices data in UIview
body: <p>i have a PHP webservices. My requirement is using PHP web services to display json data in <code>UIView</code> one by one.</p>
  
  <p>The Json data is :</p>
  
  <blockquote>
    <p>"id\":\"6\",\"title\":null,\"description\":null,\"year\":\"2012\",\"date\":null}","{\"id\":\"4\",\"title\":\"
    correct in the year 2013\",\"description\":\"<em>&lt;\/font> Financial
    system in America for this year is not indicated progress this year
    too. More problems will creep up. \r\n</em>&lt;\/font> Aggressive stage
    of Telangaana agitation- formation of seperate Telangaana state-
    bifurcation of state - sure indications are \r\n\r\npredicted.
    \r\n*&lt;\/font> The Gujarath CM - Sri Narendra Modi - Bright future
    is indicated.  \r\n*&lt;\/font> Still danger is indicated for
    Indoneshia and Sumitra Islands.</p>
  </blockquote>
  
  <p>i want to display these data in UIView.Before display each line of data displaying * symbol.How to retrieve and how to display in UIViewcontroller.Help me any body.Thanks in advance.
  I am writing like this.but i got exception.</p>
  
  <pre><code>-(void)loadData
  
  {
  
  NSUserDefaults *defaults=[NSUserDefaults standardUserDefaults];
  
  [defaults valueForKey:@"id"];
  
  [defaults valueForKey:@"title"];
  
  [defaults valueForKey:@"description"];
  
  [defaults synchronize];
  
  NSURL *url=[NSURL URLWithString:@"http://www.predictions.php"];
  
  NSMutableURLRequest *request=[NSMutableURLRequest requestWithURL:url];
  
  [[NSURLConnection alloc]initWithRequest:request delegate:self];
  
  urlConnection=[[NSURLConnection alloc]initWithRequest:request delegate:self startImmediately:YES];
  
  }
  
  -(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
  
  {
  
  responseData=[[NSMutableData alloc]init];
  
  [responseData setLength:0];
  
  }
  
  
  -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
  
  {
  
  [responseData appendData:data];
  
  }
  
  
  -(void)connectionDidFinishLoading:(NSURLConnection *)connection
  
  {
  
  if(connection==urlConnection)
  
  {
  
  strResponse=[[NSString alloc]initWithData:responseData encoding:NSUTF8StringEncoding];
  
  NSLog(@"%@",strResponse);
  
  NSError *error;
  
  jsonDict=[NSJSONSerialization JSONObjectWithData:responseData options:NSJSONReadingMutableContainers error:&amp;error];
  
  NSLog(@"%@",jsonDict);
  
  
  NSArray *arrResults=[jsonDict valueForKey:@"id"];
  
  NSLog(@"%@",arrResults);
  
  
  arrString=[NSMutableArray array];
  
  for(NSDictionary *dictRes in arrResults)
  
  {
  
  constants *con=[[constants alloc]init];
  
  con.titl=[dictRes valueForKey:@"title"];
  
  //  con.desc=[dictRes valueForKey:@"description"];
  
  [arrString addObject:con];
  
  }
  
  [View1 reloadData];
  
  }
  
  }
  </code></pre>