public function setEncodingOptions(int $encodingOptions): JsonResponse
    {
        $this->encodingOptions = $encodingOptions;

        return $this->setData(json_decode($this->data));
    }
public function setEncodingOptions(int $encodingOptions): JsonResponse
    {
        $this->encodingOptions = $encodingOptions;

        return $this->setData(json_decode($this->data));
    }
public function setEncodingOptions ( int $ encodingOptions ) : JsonResponse { $ this -> encodingOptions = $ encodingOptions ; return $ this -> setData ( json_decode ( $ this -> data ) ) ; }
Sets options used while encoding data to JSON.

@param int $encodingOptions The encoding options to set

@throws \InvalidArgumentException

@return \Valkyrja\Http\JsonResponse
Sets options used while encoding data to JSON .