title: Converting Json Object to String - Objective C
body: <p>Imagine I make an request to my api that return an <code>mysql_query("Select * from user where id=1")</code>.</p>
  
  <p>After the request is done, it returns the user info in json.
  I do some debuging, <code>NSlog(@"JSON : %@",json);</code> and it gives me this:</p>
  
  <pre><code>JSON : (
      {
      aboutme = "";
      active = 0;
      birthday = "1992-10-14";
      "city_id" = 0;
      email = "test@test.com";
      fbid = "";
      firstname = test;
      gender = 1;
      id = 162;
      lastname = test;
      password = "$2a$12$8iy.sGr.4V/Ea3GfHZe0m.SLDrvoSj3/wYRlWsNce1yyCMeCbDrMC";
      "phone_number" = "";
      "recovery_date" = "0000-00-00 00:00:00";
      "register_date" = "2013-06-06 02:44:20";
      salt = "8iy.sGr.4V/Ea3GfHZe0m";
      "user_type_id" = 1;
      username = test;
  }
  )
  </code></pre>
  
  <p>Now I parse it with <code>AFJONDecode</code> and when I get the <code>[json valueForKey:@"username"];</code> and debug it ( <code>NSlog(@"username = %@",[json valueForKey@"username"]);</code> ) and I get this:</p>
  
  <pre><code>username = (
      testeteste739
  )
  </code></pre>
  
  <p>It gives me an object ( because in the Json, the username = test and not username = "test").</p>
  
  <p>So, how can i convert this object to string?</p>
  
  <p>** UPDATE **</p>
  
  <p>I resolve it by the following way:</p>
  
  <pre><code>NSArray *username = [JSON valueForKey:@"username"];
  username = [username objectAtIndex:0];
  </code></pre>
  
  <p>Is there any better way to overpass this?
  Thanks</p>