public static function exportSocialRecord(SocialRecord $socialRecord, KeyPair $accountKeyPair = NULL, KeyPair $personalKeyPair = NULL)
	{
		$json = new JSONObject();
		
		$json->put('socialRecord', $socialRecord->getJSONObject());
		
		if($accountKeyPair != NULL)
			$json->put('accountPrivateKey', PrivateKey::exportKey($accountKeyPair->getPrivateKey()));
		
		if($personalKeyPair != NULL)
			$json->put('personalPrivateKey', PrivateKey::exportKey($personalKeyPair->getPrivateKey()));
		
		return $json->write();
	}