I'm trying to load this JSON:
{ Name: "Hebrew String",
Image: "", Category: "Hebrew String",
Ingredients: "Hebrew String",
Price: "300" },.......
My code:
NSURL *url = [[NSURL alloc] initWithString:@"url"];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
AFJSONRequestOperation *operation = [AFJSONRequestOperation
JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
NSLog(@"json = %@",JSON);
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(dataretrived)
name:@"JsonFinishLoading"
object:nil];
}failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON) {}
The dta coms out scramble:
Category = "\U05db\U05e8\U05d9\U05da \U05d8\U05d5\U05e0\U05d4";
Image = "";
Ingredients = "\U05d8\U05d5\U05e0\U05d4,\U05e2\U05d2\U05d1\U05e0\U05d9\U05d4";
Name = "\U05db\U05e8\U05d9\U05da \U05d8\U05d5\U05e0\U05d4";
Price = 300;
}....
How can I convert the data so it displays properly?