title: Removing unwanted characters from json response
body: <p>I am trying to load data from a json response stored in an NSArray into a tableview.</p>
  
  <p>json:</p>
  
  <pre><code>"fulltime": [
          2,
          2
      ],
  </code></pre>
  
  <p>Above is the json but when I display to screen it looks like the below code.</p>
  
  <pre><code> ( 2, 2)
  </code></pre>
  
  <p>I have tried using the following to remove unwanted characters the brackets () in this case but i am getting the warning below the code.</p>
  
  <pre><code>  NSArray *place= [jsonResults objectAtIndex:indexPath.row];
  
    NSString *score= [place valueForKey:@"fulltime"];
  </code></pre>
  
  <p>Firstly tried this:</p>
  
  <pre><code>  NSString *score = [[[place valueForKey:@"fulltime"]objectAtIndex:indexPath.row]    stringByReplacingOccurrencesOfString:@"(" withString:@""];
  </code></pre>
  
  <p>And then this:</p>
  
  <pre><code>  NSString *jsonstring = [score stringByReplacingOccurrencesOfString:@"\)\n" withString:@""];
    jsonstring = [jsonstring stringByReplacingOccurrencesOfString:@"\t" withString:@""];
  </code></pre>
  
  <p>This is the error i get each time:</p>
  
  <pre><code>    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:   '-[__NSCFNumber stringByReplacingOccurrencesOfString:withString:]: unrecognized selector  sent to instance 0x1f55f270'
  </code></pre>
  
  <p>I am not sure is it a problem with the way i am trying o remove the characters or the way i am parsing the data. Below is a better view of the json, everything else parses fine up until i want to access "fulltime"</p>
  
  <pre><code>    "date": "2013-03-17 16:00:00",
      "home_id": 8455,
      "home": "Chelsea",
      "homeshort": "Chelsea",
      "away_id": 8654,
      "away": "West Ham United",
      "awayshort": "West Ham",
      "status": "Finished",
      "halftime": [1, 0],
      "fulltime": [2, 0],
      "extratime": [0, 0],
      "penalties": [0, 0],
  </code></pre>