I am getting value from JSON it gives exception var is not CFString. below is the link from which i am getting data http://www.krsconnect.no/community/api.html?method=categories&appid=620&mainonly=true
NSString *test = aBook.catId;
Book Class
@interface Book : NSObject {
NSString *catId;
NSString *name;
}
@property(nonatomic,retain)NSString*catId;
@property(nonatomic,retain) NSString *name;
 @end
    #import "Book.h"
    @implementation Book
    @synthesize catId,name;
  -(id)init{
  self=[super init];
    }
   - (id)initWithDictionary:(NSDictionary*) dict {
self.catId = [dict valueForKey:@"categoryId"];
self.name =  [dict valueForKey:@"name"];
      return self;
      }
   - (void)dealloc {
   [catId release];
   [name release];
   [super dealloc];
   }
   @end
 
     
     
    