I found a solution !
After a NSLog, I noticed that the parsed json object was not entirely loaded. I don't know why, but it seems that NSString objects have a limited size.
So I managed getting all that data into my NSString string by doing so :
Code:
if(jsonString == nil)
{
jsonString = [[NSMutableString alloc] initWithData:data encoding:NSUTF8StringEncoding];
}
else {
NSMutableString *temp_string = [[NSMutableString alloc] initWithString:jsonString];
[jsonString release];
jsonString = [[NSMutableString alloc] initWithData:data encoding:NSUTF8StringEncoding];
[temp_string appendString:jsonString];
[jsonString release];
jsonString = [[NSMutableString alloc] initWithString: temp_string];
[temp_string release];
}
I know the code is not that clear, but I didn't find any other solution yet !
If anyone finds a better way, let me know !