An HTTP client may send scalar data as well.
Currently it causes the following error.
TypeError: Drupal\serialization\Normalizer\EntityNormalizer::extractBundleData(): Argument #1 ($data) must be of type array, int given, called in .../core/modules/serialization/src/Normalizer/EntityNormalizer.php on line 55