public function serialize($value)
    {
        $this->reset();

        return $this->serializationStrategy->serialize($this->serializeData($value));
    }
public function serialize($value)
    {
        $this->reset();

        return $this->serializationStrategy->serialize($this->serializeData($value));
    }
public function serialize ( $ value ) { $ this -> reset ( ) ; return $ this -> serializationStrategy -> serialize ( $ this -> serializeData ( $ value ) ) ; }
Serialize the value in JSON.

@param mixed $value

@return string JSON encoded

@throws SerializerException
Serialize the value in JSON .