public function outputJson(
		int $depth = 512,
		int $options = 0
	) {
		$json = json_decode(
			$this->output(),
			false,
			$depth,
			$options
		);
		if(is_null($json)) {
			$errorMessage = json_last_error_msg();
			throw new JsonDecodeException($errorMessage);
		}

		return $json;
	}