diff --git a/core/modules/rest/src/RequestHandler.php b/core/modules/rest/src/RequestHandler.php
index 9efdb35..c422a97 100644
--- a/core/modules/rest/src/RequestHandler.php
+++ b/core/modules/rest/src/RequestHandler.php
@@ -54,9 +54,15 @@ public function handle(RouteMatchInterface $route_match, Request $request) {
       $method_settings = $config[$plugin][$request->getMethod()];
       if (empty($method_settings['supported_formats']) || in_array($format, $method_settings['supported_formats'])) {
         $definition = $resource->getPluginDefinition();
-        $class = $definition['serialization_class'];
         try {
-          $unserialized = $serializer->deserialize($received, $class, $format, array('request_method' => $method));
+          if (!empty($definition['serialization_class'])) {
+            $unserialized = $serializer->deserialize($received, $definition['serialization_class'], $format, array('request_method' => $method));
+          }
+          // If the plugin does not specify a serialization class just decode the received data.
+          // Example: received JSON is decoded into a PHP array.
+          else {
+            $unserialized = $serializer->decode($received, $format, array('request_method' => $method));
+          }
         }
         catch (UnexpectedValueException $e) {
           $error['error'] = $e->getMessage();
diff --git a/core/modules/rest/src/Tests/ResourceTest.php b/core/modules/rest/src/Tests/ResourceTest.php
index df99cc6..5201de9 100644
--- a/core/modules/rest/src/Tests/ResourceTest.php
+++ b/core/modules/rest/src/Tests/ResourceTest.php
@@ -18,7 +18,7 @@ class ResourceTest extends RESTTestBase {
    *
    * @var array
    */
-  public static $modules = array('hal', 'rest', 'entity_test');
+  public static $modules = array('hal', 'rest', 'entity_test', 'rest_test');
 
   /**
    * The entity.
@@ -104,6 +104,40 @@ public function testAuthentication() {
   }
 
   /**
+   * Tests that we must decode instead of deserialize.
+   *
+   * For when a serialization class is not needed.
+   */
+  public function testSerializationClassNotNeeded() {
+    // Enabling the service.
+    $settings = [];
+    $resources = [
+      ['type' => 'serialization_test', 'method' => 'POST'],
+    ];
+    $format = 'json';
+    $auth = $this->defaultAuth;
+    foreach ($resources as $resource) {
+      $settings[$resource['type']][$resource['method']]['supported_formats'][] = $format;
+      $settings[$resource['type']][$resource['method']]['supported_auth'] = $auth;
+      $this->config->set('resources', $settings);
+      $this->config->save();
+    }
+    $this->rebuildCache();
+
+    // Add permission to anonymous user.
+    Role::load(RoleInterface::ANONYMOUS_ID)
+      ->grantPermission('restful post serialization_test')
+      ->save();
+
+    // Create a JSON.
+    $serialized = $this->container->get('serializer')->serialize(['foo'], 'hal_json');
+    // Post to the REST service to verify that the result is correct.
+    $this->httpRequest('serialization_test', 'POST', $serialized, 'application/json');
+    $this->assertResponse('200', 'HTTP response code is correct.');
+    $this->assertResponseBody('"foo"', 'The Response Body is correct.');
+  }
+
+  /**
    * Tests that resource URI paths are formatted properly.
    */
   public function testUriPaths() {
diff --git a/core/modules/rest/tests/modules/rest_test/rest_test.info.yml b/core/modules/rest/tests/modules/rest_test/rest_test.info.yml
index b5f4966..e10b226 100644
--- a/core/modules/rest/tests/modules/rest_test/rest_test.info.yml
+++ b/core/modules/rest/tests/modules/rest_test/rest_test.info.yml
@@ -1,6 +1,6 @@
 name: 'REST test'
 type: module
-description: 'Provides test hooks for REST module.'
+description: 'Provides test hooks and resources for REST module.'
 package: Testing
 version: VERSION
 core: 8.x
