Im trying to grab the artistId from this JSON
{
"wrapperType": "track",
"kind": "podcast",
"artistId": 125443881,
"collectionId": 523121474,
"trackId": 523121474,
when creating my podcast object. but when i try to display this variable as a string, it returns null. how do i fix this?
This is where I am trying to access the artistID
NSNumber *podcastID = episode.podcast.artistID;
NSString *episodeNumber = [episode.title stringByReplacingOccurrencesOfString:@" " withString:@"-"];
NSString *deeplinkURL = [NSString stringWithFormat: @"podcast://%@/%@",podcastID, episodeNumber];
The string makes "podcastID" (null) in all instances.
And here is the iTunes response, where I assign the artist ID
response.artistId = [[dictionary objectForKey:@"artistId"] integerValue];