 		}
 		
 		self.extractLinks(self.data)
+	
 		self.resolveRelations()
 		
 		self.result = DeserializationResult(self.store, nil)

		super.init()
	}
	
	override func main() {		
		if (self.data.object == nil) {
			let error = NSError(domain: SPINE_ERROR_DOMAIN, code: 0, userInfo: [NSLocalizedDescriptionKey: "The given JSON representation was not as expected."])
			self.result = DeserializationResult(nil, error)

	 :returns: The extracted relationship or nil if no relationship with the given key was found in the data.
	*/
	private func extractToOneRelationship(serializedData: JSONValue, key: String, resource: Resource) -> ResourceLink? {
		// Single ID form
		if let ID = serializedData["links"][key].string {
			return ResourceLink(href: nil, ID: ID, type: nil)
		}
		
		// Resource object form
		else if let linkData = serializedData["links"][key].object {
			var href: String?, ID: String?, type: String?
			
			if linkData["href"] != nil {
