title: App crashes when storing NSArray in NSUserDefaults
body: <p>I couldn't store an NSArray in <code>NsUserDefaults</code>. The app gets crashed<br>
  in this line 
  <code>[savedData setObject:jsonValue forKey:@"JSONDATA"];</code></p>
  
  <p>Below is my code. and i have mention my log error below</p>
  
  <pre><code>NSArray *jsonValue =[NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
  NSUserDefaults *savedData = [NSUserDefaults standardUserDefaults];
  [savedData setObject:jsonValue forKey:@"JSONDATA"];
  [savedData synchronize];
  </code></pre>
  
  <p>Error log:</p>
  
  <pre><code>*** Terminating app due to uncaught exception '`NSInvalidArgumentException`', reason: '*** -
  
  [NSUserDefaults setObject:forKey:]: attempt to insert non-property list object &lt;CFBasicHash 0x8c62b10 [0x1d2aec8]&gt;{type = immutable dict, count = 3,
      entries =&gt;
  </code></pre>