title: JSON serialisation not supported objective c
body: <p>I am getting below error when I am using Dictionary with array of object : </p>
  
  <pre><code>NSMutableDictionary *jsonDict=[[NSMutableDictionary alloc] init];
  [jsonDict setObject:checkMarkPresetRecipientsArray forKey:@"Names"];
  [jsonDict setObject:checkMarkDocumentGroupNameArray forKey:@"Address"];
  json =  [jsonDict JSONFragment];
  </code></pre>
  
  <p>Error : JSONFragment failed. Error trace is: (
      "Error Domain=org.brautaset.JSON.ErrorDomain Code=1 \"JSON serialisation not supported for DocumentType\" UserInfo=0xb5cc270 {NSLocalizedDescription=JSON serialisation not supported for DocumentType}",
      "Error Domain=org.brautaset.JSON.ErrorDomain Code=1 \"Unsupported value for key DocumentTypes in object\" UserInfo=0xb580e60 {NSUnderlyingError=0xb585320 \"JSON serialisation not supported for DocumentType\", NSLocalizedDescription=Unsupported value for key DocumentTypes in object}"
  )</p>
  
  <p>but not getting same error with :</p>
  
  <pre><code>NSMutableDictionary *jsonDict=[[NSMutableDictionary alloc] initWithObjectsAndKeys:@"Nitesh",@"Name", @"Balaghat",@"Address",nil];
      NSString *json=[jsonDict JSONRepresentation];
      NSLog(@"%@",json);
  </code></pre>
  
  <p>above gives me correct JSON representation.</p>
  
  <p>What I am doing wrong? can any one help me on above....</p>
  
  <p>Actually my array contains core data class object and it's not supporting JSON representation so I changed by implementation now it's working fine. If is there any way to change coredata class objects representation in JSON please update me. Thanks.</p>