diff --git a/core/modules/rest/src/Plugin/views/style/Serializer.php b/core/modules/rest/src/Plugin/views/style/Serializer.php
index 895f00c..b02be27 100644
--- a/core/modules/rest/src/Plugin/views/style/Serializer.php
+++ b/core/modules/rest/src/Plugin/views/style/Serializer.php
@@ -137,7 +137,7 @@ public function render() {
     else {
       $content_type = !empty($this->options['formats']) ? reset($this->options['formats']) : 'json';
     }
-    return $this->serializer->serialize($rows, $content_type);
+    return $this->serializer->serialize($rows, $content_type, array('views_style_options' => $this->options));
   }
 
   /**
diff --git a/core/modules/rest/tests/src/Unit/RestSerializerTest.php b/core/modules/rest/tests/src/Unit/RestSerializerTest.php
new file mode 100644
index 0000000..8d0b1d0
--- /dev/null
+++ b/core/modules/rest/tests/src/Unit/RestSerializerTest.php
@@ -0,0 +1,82 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\Tests\rest\Unit\RestSerializerTest.
+ */
+
+namespace Drupal\Tests\rest\Unit;
+
+use Drupal\rest\Plugin\views\style\Serializer;
+use Drupal\Tests\UnitTestCase;
+
+/**
+ * @coversDefaultClass \Drupal\rest\Plugin\views\style\Serializer
+ * @group rest
+ */
+class RestSerializerTest extends UnitTestCase {
+
+  /**
+   * The View instance.
+   *
+   * @var \Drupal\views\Entity\View|\PHPUnit_Framework_MockObject_MockObject
+   */
+  protected $view;
+
+  /**
+   * The RestExport display handler.
+   *
+   * @var \Drupal\rest\Plugin\views\display\RestExport|\PHPUnit_Framework_MockObject_MockObject
+   */
+  protected $displayHandler;
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+
+
+    $this->view = $this->getMock('\Drupal\views\Entity\View', array('initHandlers'), array(
+      array('id' => 'test_view'),
+      'view',
+    ));
+    // Make the view result empty so we don't have to mock the row plugin render
+    // call.
+    $this->view->result = [];
+
+    $this->displayHandler = $this->getMockBuilder('\Drupal\rest\Plugin\views\display\RestExport')
+      ->disableOriginalConstructor()
+      ->getMock();
+
+    $this->displayHandler->expects($this->any())
+      ->method('getContentType')
+      ->will($this->returnValue('json'));
+  }
+
+  /**
+   * Tests that the symfony serializer receives options from the render() method.
+   *
+   * @covers ::render
+   */
+  public function testSerializerReceivesOptions() {
+
+    $options = ['formats' => ['xml', 'json']];
+    $mock_serializer = $this->getMockBuilder('Symfony\Component\Serializer\SerializerInterface')
+      ->disableOriginalConstructor()
+      ->getMock();
+
+    // This is the main expectation of the test. We want to make sure the
+    // serializer options are passed to the SerializerInterface object.
+    $mock_serializer->expects($this->once())
+      ->method('serialize')
+      ->with([], 'json', ['views_style_options' => $options])
+      ->will($this->returnValue(''));
+
+    $view_serializer = new Serializer([], 'dummy_serializer', [], $mock_serializer, ['json', 'xml']);
+    $view_serializer->options = $options;
+    $view_serializer->view = $this->view;
+    $view_serializer->displayHandler = $this->displayHandler;
+    $view_serializer->render();
+  }
+}
