title: Converting NSString to NSDictionary / JSON
body: <p>I have the following data saved as an <code>NSString</code> : </p>
  
  <pre><code> {
      Key = ID;
      Value =         {
          Content = 268;
          Type = Text;
      };
  },
      {
      Key = ContractTemplateId;
      Value =         {
          Content = 65;
          Type = Text;
      };
  },
  </code></pre>
  
  <p>I want to convert this data to an <code>NSDictionary</code> containing the key value pairs.</p>
  
  <p>I am trying first to convert the <code>NSString</code> to a <strong>JSON</strong> objects as follows :</p>
  
  <pre><code> NSData *data = [string dataUsingEncoding:NSUTF8StringEncoding];
  id json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
  </code></pre>
  
  <p>However when I try :</p>
  
  <pre><code>NSString * test = [json objectForKey:@"ID"];
  NSLog(@"TEST IS %@", test);
  </code></pre>
  
  <p>I receive the value as <code>NULL</code>. </p>
  
  <p>Can anyone suggest what is the problem ?</p>