retrive data as json from php to iPhone
<pre><code>-(void)viewDidLoad {

   NNString *myStringJson = [[NSString alloc] initWithContentofURL:[NSURL URLwithString@" "]];

    if([myStringJson length == 0]){
        [myStrinJson release];
        return;
    }

    SBJSON *parser = [[SBJSON alloc] init];

    listArray = [[parser objectWithString:myStringJson] copy];

    [parser release];
}
</code></pre>
