Neos.Media/Classes/TypeConverter/ImageInterfaceJsonSerializer.php
public function convertFrom($source, $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)
    {
        $data = parent::convertFrom($source, 'array', $convertedChildProperties, $configuration);
        return json_encode($data);
    }
public function convertFrom($source, $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)
    {
        $data = parent::convertFrom($source, 'array', $convertedChildProperties, $configuration);
        return json_encode($data);
    }
public function convertFrom ( $ source , $ targetType , array $ convertedChildProperties = [ ] , PropertyMappingConfigurationInterface $ configuration = null ) { $ data = parent :: convertFrom ( $ source , 'array' , $ convertedChildProperties , $ configuration ) ; return json_encode ( $ data ) ; }
Convert an object from \Neos\Media\Domain\Model\ImageInterface to a json representation.

@param ImageInterface $source
@param string $targetType must be 'string'
@param array $convertedChildProperties
@param PropertyMappingConfigurationInterface $configuration
@return string The converted ImageInterface
Convert an object from \ Neos \ Media \ Domain \ Model \ ImageInterface to a json representation .