title: How do i save this json as Plist in following format?
body: <p>Hi i have a JSON like following structure</p>
  
  <pre><code>{
     "taxi":[
        {
           "id":"173",
           "taxiName":"texi cabs",
           "taxiDescription":"test desc",
           "contactNumber":[
              {
                 "Number":"vodafoen,4686565635"
              }
           ]
        },
        {
           "id":"172",
           "taxiName":"Blue Moon",
           "taxiDescription":"test desc",
           "contactNumber":[
              {
                 "Number":"vodafone,45686532"
              }
           ]
        },
        {
           "id":"174",
           "taxiName":"yellow cabs",
           "taxiDescription":"test",
           "contactNumber":[
              {
                 "Number":"airvoice,657865"
              },
              {
                 "Number":"simmens,643437547457"
              },
              {
                 "Number":"tescom,96831635365"
              }
           ]
        }
     ]
  }
  </code></pre>
  
  <p><a href="http://zonewebs.org/website/naveen/test/tempjson/jsonTaxi.php" rel="nofollow noreferrer">Link</a></p>
  
  <p>From this iam trying to save the "contactNumber" of each element into a new plist. Please help me.</p>
  
  <p>So the final plist look slike 
  Contact list of all these 3 elements</p>
  
  <p>I have tried this </p>
  
  <pre><code>   paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
      NSString *taxiPath = [[paths objectAtIndex:0] stringByAppendingPathComponent:@"taxicontactlist.plist"];
      NSMutableArray *newList=[[NSMutableArray alloc]init];
      taxiContactRoot=[[NSDictionary alloc]initWithContentsOfFile:path];
      taxiContactNewArray=taxiContactRoot[@"taxi"];
      taxiContact=[taxiContactNewArray valueForKey:@"contactNumber"] ;
      NSArray *s=[[NSArray alloc]init];
      s=[taxiContact valueForKey:@"Number"];
      //taxiContact=[taxiContact valueForKey:@"Number"];
      NSString *str;
      for(int i=0;i&lt;[taxiContact count];i++){
          str=[s objectAtIndex:i];
          [newList addObject:str];
          str=@"";
      }
      NSLog(@"%@",newList);
     [newList writeToFile:taxiPath atomically:YES];
  </code></pre>
  
  <p>but the result is</p>
  
  <p><img src="https://i.stack.imgur.com/oskqC.png" alt="enter image description here"></p>