title: Using JSONmodel to try and fetch data from a server to ios device
body: <p>I've been trying to use JSONmodel to try and get data from my server to my ios device. I've set up my classes properly but for some reason it keeps coming back null after calling the url. </p>
  
  <pre><code>feed = [[Feeds alloc] initFromURLWithString:@"http://http://www.cs4768project.net76.net/untitled.php?action=getShops"
                                           completion:^(JSONModel *model, JSONModelError *err) {
                                               NSLog(@"reached");
                                               //json fetched
                                               NSLog(@"shops: %@", feed.shops);
  </code></pre>
  
  <p>Here is the model that holds the feeds</p>
  
  <pre><code>@interface Feeds : JSONModel
  @property(strong,nonatomic) NSArray* shops;
  @end
  </code></pre>
  
  <p>along with my coffee shop class</p>
  
  <pre><code>@interface CoffeeShop : JSONModel
  @property(strong, nonatomic) NSString* name;
  @property(nonatomic) CLLocationDegrees latitude;
  @property(nonatomic) CLLocationDegrees longtitude;
  @end
  </code></pre>
  
  <p>the json output:</p>
  
  <pre><code>{"name":"Starbs","latitude":"45","longtitude":"-52"}
  </code></pre>
  
  <p>i've been trying to find a solution for a while and have come up with nothing and im stumped on why this isnt working. Any help would be awesome.</p>