diff --git a/Classes/ContentObject/JsonContentObject.php b/Classes/ContentObject/JsonContentObject.php index 4d1bfd78..1780c900 100755 --- a/Classes/ContentObject/JsonContentObject.php +++ b/Classes/ContentObject/JsonContentObject.php @@ -121,6 +121,9 @@ public function cObjGet(array $setup, string $addKey = ''): array if ((int)($conf['ifEmptyReturnNull'] ?? 0) === 1 && $content[$theKey] === '') { $content[$theKey] = null; } + if ((int)($conf['ifEmptyUnsetKey'] ?? 0) === 1 && ($content[$theKey] === '' || $content[$theKey] === false)) { + unset($content[$theKey]); + } if (!empty($contentDataProcessing['dataProcessing.'])) { $content[rtrim($theKey, '.')] = $this->processFieldWithDataProcessing($contentDataProcessing); }