Fixed
Project:
Content Builder
Version:
1.0.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Nov 2026 at 13:27 UTC
Updated:
18 Nov 2026 at 20:09 UTC
Jump to comment: Most recent
Generated with the help of an LLM.
JSON:API requests, REST requests, and default content exports fail for an entity that has a Content Builder field with sections.
/jsonapi/node/page/UUID, with the page's UUID./node/1?_format=json.php core/scripts/drupal content:export node 1.Steps 3-5 all fail.
The normalization error, as REST hits it:
TypeError: Drupal\serialization\Normalizer\TypedDataNormalizer::doNormalize(): Return value must be of type ArrayObject|array|string|int|float|bool|null, Drupal\layout_builder\Section returned
#0 core/modules/serialization/src/Normalizer/TypedDataNormalizer.php(36)
#1 core/modules/serialization/src/Normalizer/SchematicNormalizerTrait.php(42)
#2 vendor/symfony/serializer/Serializer.php(152)
#3 core/modules/serialization/src/Normalizer/ComplexDataNormalizer.php(47)
#4 vendor/symfony/serializer/Serializer.php(152)
#5 core/modules/serialization/src/Normalizer/ListNormalizer.php(34)
#6 vendor/symfony/serializer/Serializer.php(152)
#7 core/modules/serialization/src/Normalizer/ContentEntityNormalizer.php(35)Default content export error:
Drupal\Component\Serialization\Exception\InvalidDataTypeException: Object support when dumping a YAML file has been disabled.
#0 core/lib/Drupal/Component/Serialization/Yaml.php(25)
#1 core/lib/Drupal/Core/DefaultContent/ExportResult.php(33)
Caused by Symfony\Component\Yaml\Exception\DumpException: Object support when dumping a YAML file has been disabled.
#0 vendor/symfony/yaml/Inline.php(146)
#1 vendor/symfony/yaml/Dumper.php(63)A section's value is core's Section object, and JSON and YAML can't hold objects.
Normalize sections as arrays, and accept the same arrays when content is created or imported. The normalizer is registered only when the Serialization module is installed.
None
None
None
None
Comments
Comment #2
gloriaswebtech commentedComment #3
gloriaswebtech commentedComment #4
gloriaswebtech commentedComment #5
gloriaswebtech commentedComment #6
gloriaswebtech commentedComment #8
gloriaswebtech commentedFixed in 1.0.2