The category count is only ever 1 and I need to output the name of the category the entry belongs to.
Would there need to be a cross-over between the EntryModel and CategoryModel?
'transformer' => function(EntryModel $entry) {
return [
'title' => $entry->title,
'url' => $entry->url,
'jsonUrl' => UrlHelper::getUrl("jobs/{$entry->id}.json"),
'postDate' => $entry->postDate->getTimestamp() * 1000,
'id' => $entry->id,
'jobOverview' => (string) $entry->jobOverview,
'category' => $entry->jobCategory[0],
];
},