I have parsed the Json using following code
- (void) getWorkingCalendar:(NSData *)dataForParse{
NSMutableArray *locations = [[NSMutableArray alloc] init];
NSString* myString;
myString = [[NSString alloc] initWithData:dataForParse encoding:NSASCIIStringEncoding];
NSLog(@"data is %@", myString);
NSArray * parsedData = [NSJSONSerialization JSONObjectWithData:dataForParse options:kNilOptions error:nil];
NSLog(@"parser data %@", parsedData);
for (NSDictionary *dict in parsedData) {
NSLog(@"Value is %@", dict);
}
[delegate array:locations];
}
Output as below
2014-04-30 12:44:41.828 Testing[827:60b] parser data (
"/Date(1399016682788+0400)/",
"/Date(1399621482788+0400)/",
"/Date(1400226282788+0400)/",
"/Date(1400831082788+0400)/",
"/Date(1401435882788+0400)/"
)
2014-04-30 12:44:41.829 Testing[827:60b] Value is /Date(1399016682788+0400)/
2014-04-30 12:44:41.829 Testing[827:60b] Value is /Date(1399621482788+0400)/
2014-04-30 12:44:41.829 Testing[827:60b] Value is /Date(1400226282788+0400)/
2014-04-30 12:44:41.830 Testing[827:60b] Value is /Date(1400831082788+0400)/
2014-04-30 12:44:41.830 Testing[827:60b] Value is /Date(1401435882788+0400)/
2014-04-30 12:44:41.830 Testing[827:60b] finishDownloading
How can I get time slot in NSString from NSDictionary?
Thanks in Advance.