src/Valkyrja/Http/NativeJsonResponse.php
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