title: Decoding JSON array with unicode character
body: <p>I have the following JSON array:</p>
  
  <pre><code>[u'steve@gmail.com']
  </code></pre>
  
  <p>"u" is apparently the unicode character, and it was automatically created by Python. Now, I want to bring this back into Objective-C and decode it into an array using this:</p>
  
  <pre><code>+(NSMutableArray*)arrayFromJSON:(NSString*)json
  {
      if(!json) return nil;
      NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
     //I've also tried NSUnicodeStringEncoding here, same thing
      NSError *e;
      NSMutableArray *result= [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:&amp;e];
      if (e != nil) {
          NSLog(@"Error:%@", e.description);
          return nil;
      }
      return result;
  }
  </code></pre>
  
  <p>However, I get an error: <code>(Cocoa error 3840.)" (Invalid value around character 1.)</code></p>
  
  <p>How do I remedy this?</p>
  
  <p>Edit: Here's how I bring the entity from Python back into objective-c:</p>
  
  <p>First I convert the entity to a dictionary:</p>
  
  <pre><code>def to_dict(self):
      return dict((p, unicode(getattr(self, p))) for p in self.properties()
                  if getattr(self, p) is not None)
  </code></pre>
  
  <p>I add this dictionary to a list, set the value of my responseDict['entityList'] to this list, then <code>self.response.out.write(json.dumps(responseDict))</code></p>
  
  <p>However the result I get back still has that 'u' character.</p>