protected function extractRequestBody()
    {
        $propertyMappingConfiguration = new PropertyMappingConfiguration();
        $propertyMappingConfiguration->setTypeConverter($this->objectManager->get(MediaTypeConverterInterface::class));
        $propertyMappingConfiguration->setTypeConverterOption(MediaTypeConverterInterface::class,
            MediaTypeConverterInterface::CONFIGURATION_MEDIA_TYPE, 'application/json');
        $result = $this->objectManager->get(PropertyMapper::class)->convert($this->request->getHttpRequest()->getContent(),
            'array', $propertyMappingConfiguration);

        return $result['data'];
    }
protected function extractRequestBody()
    {
        $propertyMappingConfiguration = new PropertyMappingConfiguration();
        $propertyMappingConfiguration->setTypeConverter($this->objectManager->get(MediaTypeConverterInterface::class));
        $propertyMappingConfiguration->setTypeConverterOption(MediaTypeConverterInterface::class,
            MediaTypeConverterInterface::CONFIGURATION_MEDIA_TYPE, 'application/json');
        $result = $this->objectManager->get(PropertyMapper::class)->convert($this->request->getHttpRequest()->getContent(),
            'array', $propertyMappingConfiguration);

        return $result['data'];
    }
protected function extractRequestBody ( ) { $ propertyMappingConfiguration = new PropertyMappingConfiguration ( ) ; $ propertyMappingConfiguration -> setTypeConverter ( $ this -> objectManager -> get ( MediaTypeConverterInterface :: class ) ) ; $ propertyMappingConfiguration -> setTypeConverterOption ( MediaTypeConverterInterface :: class , MediaTypeConverterInterface :: CONFIGURATION_MEDIA_TYPE , 'application/json' ) ; $ result = $ this -> objectManager -> get ( PropertyMapper :: class ) -> convert ( $ this -> request -> getHttpRequest ( ) -> getContent ( ) , 'array' , $ propertyMappingConfiguration ) ; return $ result [ 'data' ] ; }
The content of the HTTP request is provided as json in a
jsonapi.org structure.

@return mixed
@throws \Neos\Flow\Http\Exception
The content of the HTTP request is provided as json in a jsonapi . org structure .