public function Serialize($entity)
    {
        $this->collectResourceURL($entity);
        $arrayObj = $this->customerConvertObjectToArray($entity);
        $array = $this->removeNullProperties($arrayObj);
        return $this->checkResult(json_encode($array, true));
    }
public function Serialize($entity)
    {
        $this->collectResourceURL($entity);
        $arrayObj = $this->customerConvertObjectToArray($entity);
        $array = $this->removeNullProperties($arrayObj);
        return $this->checkResult(json_encode($array, true));
    }
public function Serialize ( $ entity ) { $ this -> collectResourceURL ( $ entity ) ; $ arrayObj = $ this -> customerConvertObjectToArray ( $ entity ) ; $ array = $ this -> removeNullProperties ( $ arrayObj ) ; return $ this -> checkResult ( json_encode ( $ array , true ) ) ; }
Serializes the specified entity.
@param object entity The entity
@return string Returns the serialize entity in string format.
Serializes the specified entity .