public function getObject()
 {
     // force json format
     $this->getResponse()->setFormat('json');
     $id = $this->request->getVal('id', false);
     $url = $this->request->getVal('url', false);
     $object = null;
     if (!empty($id)) {
         $object = $this->structuredData->getSDElementById($id);
     } else {
         if (!empty($url)) {
             $object = $this->structuredData->getSDElementByURL($url);
         }
     }
     if (is_object($object)) {
         $this->response->setBody((string) $object);
     }
 }